Ensure Space After Comma
Adds a space after a comma as strip
and many other functions may consider a
comma separated string as one word (i.e., "one,two,three"
becomes
"onetwothree"
rather than "one two three"
).
add_comma_space(x)
x |
The text variable. |
Returns a vector of strings with commas that have a space after them.
## Not run: x <- c("the, dog,went", "I,like,it", "where are you", NA, "why", ",", ",f") add_comma_space(x) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.