Description Usage Arguments Examples
View source: R/string.R View source: R/.ipynb_checkpoints/string-checkpoint.R
Remove non-alphanumeric characters from a string. Optionally remove spaces.
1 | char.remove_non_alphanum(string, keep_spaces = TRUE)
|
string |
A character string. |
keep_spaces |
Don't remove spaces. |
1 2 3 4 | remove_non_alphanum("222-44-6666")
[1] "222446666"
char.remove_non_alphanum("Devante Smith-Pelly", keep_spaces = F)
[1] "DevanteSmithPelly"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.