View source: R/utils.strClean.R
strClean | R Documentation |
strClean( x, DEBUG = FALSE, upper = FALSE, forbiden.char = c(" ", ".", ":", ";", "-", "__", "(", ")", "[", "]", "{", "}", "$", "%", "&", "/", "\\", "!"), forbiden.last.char = c("_", " ") )
x |
string to be cleaned |
DEBUG |
T/F verbose output (default = FALSE) |
upper |
transform to upper case (default = FALSE) |
forbiden.char |
vector with characters to change for '_' if found anywhere (default = c(" ",".",":","-","__","(",")","[","]","","","$"," \itemforbiden.last.charvector with characters to remove if found at the end of the string (default = c("_"," ")) |
String cleaned strClean
strClean("VAR_NAM;E") #... will return "VAR_NAM_E"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.