powered by
Converts each of the special characters to their escaped equivalents in each element of a single vector.
subOut(toAlter, specialChars = c("!", "(", ")", "-", "=", "*", "."))
Character vector that will be altered by subbing the special characters with their escaped equivalents
The characters to be subbed out
toAlter is returned with any of the defined specialChars subbed out for their escaped equivalents
Each element in the specialChar vector is subbed for its escaped equivalent in each of the elements of toAlter
sub subSpecials
sub
subSpecials
# NOT RUN { subOut(c("Hello", "(parens)", "Excited! Mark")) subOut(c("Hello", "(parens)", "Excited! Mark"), specialChars=c("!", "(")) # }
Run the code above in your browser using DataLab