str_clean | R Documentation |
A simple wrapper str_replace_all() with sensible defaults.
str_clean(
string,
underscores = T,
spacing_dots = T,
end_dots = T,
all_dots = F,
multi_dots = T
)
string |
(chr scalar) A string to clean. |
underscores |
(log scalar) Whether to clean underscores. Default=T. |
spacing_dots |
(log scalar) Whether to clean spacing underscores. Default=T. |
end_dots |
(log scalar) Whether to clean dots at the end of the string. Default=T. |
all_dots |
(log scalar) Whether to clean all dots. Default=F. |
multi_dots |
(log scalar) Whether to reduce multiple dots in a row to a single dot. Default=T. |
str_clean(colnames(iris))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.