search for: york20

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

Did you mean: zork20
2010 Feb 26
6
using grep
Hi All, I have a character vector with naems of cities in the us. I need to extract the number that appear after the word "New York", for example, x<-c("P Los Angeles44AZ", "P New York722AZ", "K New York20") I want the results to be 722, 20 cab I use the grep function, if so how? I appreciate your help, thanks, -- View this message in context: http://n4.nabble.com/using-grep-tp1571102p1571102.html Sent from the R help mailing list archive at Nabble.com.