powered by
Utility function that prepends a comma before the input string if the string is non-empty.
prepComma(s)
Character string.
If s is non-empty, returns paste(",", s), otherwise returns s.
s
paste(",", s)
# NOT RUN { prepComma("abc"); prepComma(""); # }
Run the code above in your browser using DataLab