[R] regular expression for selection
petr.pikal at precheza.cz
Mon Nov 14 09:45:18 CET 2011
I am again (as usual) lost in regular expression use for selection. Here
are my data:
I want to select only values "m" foolowed by numbers from 53 to 59.
sub("m5.", "", mena)
which correctly selects those m53 - m59 values but, in contrary to my
expectation, it replaced the selected values with specified replacement -
in that case empty string.
What I shall use if I want to get rid of all but m53-m59 from those
More information about the R-help