search for: substitutestr

Displaying 1 result from an estimated 1 matches for "substitutestr".

Did you mean: substitutes
2009 Jan 19
1
sub and gsub treat \\ incorrectly (PR#13454)
Sub and gsub treat \\ replacement pattern incorrectly I expect sub("a","\\", "a", perl=T) to produce [1] "\" instead it generates [1] "" On the other hand, if I run sub("a","\\\\", "a", perl=T) it correctly outputs [1] "\\" The same issue applies to gsub. --please do not edit the information