a_gsub | R Documentation |
Remove all special charachers in a string except "_", and change all characters to the lower cases is set lower_case = TRUE.
a_gsub(vec_name, lower_case = TRUE)
vec_name |
A character string indicating the vector needed to be removed special characters. |
lower_case |
A logical value indicating the lower case setting. Default "False." If true, all characters will to convert to lower cases. |
Returned a string with no special characters except "_"
## Not run: vec <- "ad*&_ae20" a_gsub(vec, lower_case = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.