Skip to content
Prev 291145 / 398498 Next

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

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.