search for: mung5

Displaying 2 results from an estimated 2 matches for "mung5".

Did you mean: munge
2017 Aug 23
4
Flummoxed by gsub().
I have a vector (say "x") of the form [1] "mung5" "mung10" "mung20" "gorp5" "gorp10" "gorp20" I want to extract just the numbers (strings of digits) that appear at the end of the strings in "x". My reading of ?regex led me to believe that gsub("[:alpha:]","...
2017 Aug 23
0
Flummoxed by gsub().
...[mailto:r-help-bounces at r-project.org] On Behalf Of Rolf Turner > Sent: Wednesday, August 23, 2017 7:46 AM > To: r-help mailing list <r-help at r-project.org> > Subject: [R] Flummoxed by gsub(). > > > I have a vector (say "x") of the form > > [1] "mung5" "mung10" "mung20" "gorp5" "gorp10" "gorp20" > > I want to extract just the numbers (strings of digits) that appear at the end of > the strings in "x". > > My reading of ?regex led me to believe that > > gs...