[R] substitution of the ASCII character "squared" AKA "^2" AKA (alt+0178) with a tractable one

Rui Barradas rui1174 at sapo.pt
Tue Apr 10 16:41:42 CEST 2012


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.



More information about the R-help mailing list