[R] Extract character strings from a vector
Marine Regis
marine.regis at hotmail.fr
Tue Jun 21 23:55:33 CEST 2016
Hello,
I have a vector x of character strings:
x <- c("LM0122","RTGFFFF", "GF TYHH", "HJN 89963", "KFTR1","RT 8")
>From this vector, how can I extract the following character strings (i.e., which contain 0 or 1 numeric value)
[1] "RTGFFFF" "GF TYHH" "KFTR1" "RT 8"
Thank you very much for your help.
Have a nice day
Marine
[[alternative HTML version deleted]]
More information about the R-help
mailing list