.replSpecChar | R Documentation |
This function allows replacing special characters
Note that (most) special characters must be presented with protection for grep
and sub
.
.replSpecChar(x, findSp = c("\\(", "\\)", "\\$"), replBy = "_")
x |
(character) main input |
findSp |
(character) special characters to replace (may have to be given as protected) |
replBy |
(character) replace by |
This function returns a corrceted/adjusted factor
factor
.replSpecChar(c("jhjh(ab)","abc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.