gsub special characters r code example
Example: gsub special characters r
#In R the escape symbol is a doube backslash \\
#For example, to substitute every oper square bracket we have in a string
#with, let's say, the string "newword"
gsub("\\[", "newword", string)