.replSpecChar {wrMisc} | R Documentation |
Replace Special Characters
Description
This function allows replacing special characters
Note that (most) special characters must be presented with protection for grep
and sub
.
Usage
.replSpecChar(x, findSp = c("\\(", "\\)", "\\$"), replBy = "_")
Arguments
x |
(character) main input |
findSp |
(character) special characters to replace (may have to be given as protected) |
replBy |
(character) replace by |
Value
This function returns a corrceted/adjusted factor
See Also
Examples
.replSpecChar(c("jhjh(ab)","abc"))
[Package wrMisc version 1.15.1 Index]