Description Usage Arguments Value Examples
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"
).
1 | comma_spacer(text.var)
|
text.var |
The text variable. |
Returns a vector of strings with commas that have a space after them.
1 2 3 4 5 | ## Not run:
x <- c("the, dog,went", "I,like,it", "where are you", NA, "why", ",", ",f")
comma_spacer(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.