[R] Remove superscripts from HTML objects

mlell08 mlell08 at googlemail.com
Thu Apr 12 16:31:12 CEST 2012


Hi,

h <- "<html><p>Cat<sup>a</sup></p><p>Dog</p></html>"
sub("<sup.*sup>","",h)

see http://en.wikibooks.org/wiki/R_Programming/Text_Processing for more
information.

Regards!



More information about the R-help mailing list