Prepend a comma to a non-empty string
Utility function that prepends a comma before the input string if the string is non-empty.
prepComma(s)
s |
Character string. |
If s
is non-empty, returns paste(",", s)
, otherwise returns s.
Peter Langfelder
prepComma("abc"); prepComma("");
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.