search for: jsda23tth

Displaying 1 result from an estimated 1 matches for "jsda23tth".

2011 Feb 07
1
Extract number from string
Dear R Users, if I have a string as follows x<-"jsda23tth" How can I extract out 23 as a numeral? I found substr(x,5,6) but, this doesnt work if the number of alphabets differ. This is another example where the numbers need to be extracted. x<-c("jsda23tth","fgd54fgd","j3ngh","gfdjh564") any ideas? This...