rm_spaces | R Documentation |
This function removes spaces (all leading and trailing ones, and unique in-between) from a character vector.
rm_spaces(string, all = FALSE)
string |
a character vector |
all |
logical, if TRUE remove all blank spaces, otherwise rm only duplicated and leading/trailing ones. |
test <- c(" test ", " mediterranean sea ")
rm_spaces(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.