[R] String manipulation
Megh Dal
megh700004 at yahoo.com
Sun Jun 26 16:54:42 CEST 2011
Dear all, I have following kind of character vector:
Vec <- c("344426", "dwjjsgcj", "123sgdc", "aagha123", "sdh343asgh", "123jhd51")
Now I want to split each element of this vector according to numeric and string element. For example in the 1st element of that vector, there is no string element. Therefore I should get a vector of length 2 like c("", "344426") and so on.
Can somebody point me how to achieve that in R? Is there any specific function for doing that?
Thanks,
More information about the R-help
mailing list