cleanSpaces | R Documentation |
Drop leading, trailing and repeated spaces in character strings
cleanSpaces(x, double = TRUE, lead = TRUE, trail = TRUE)
x |
A vector of character strings to modify |
double |
Replace any number of consecutive blank spaces by a single blank. Default is TRUE. |
lead |
Drop spaces before first non-empty character. Default is TRUE. |
trail |
Drop spaces after last non-empty character. Default is TRUE. |
A vector of class character
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.