P.S. : "\xb2" works but must be used with perl = TRUE. # 'y' defined as above. grep("\xb2", y, perl = TRUE) gsub("\xb2", "HERE", y, perl = TRUE)
Rui Barradas -- View this message in context: http://r.789695.n4.nabble.com/substitution-of-the-ASCII-character-squared-AKA-2-AKA-alt-0178-with-a-tractable-one-tp4545664p4545824.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.