What is your R version? Install the most recent R version (2.10.1).
On Fri, Feb 26, 2010 at 5:02 PM, kayj <kjaj...@yahoo.com> wrote: > > Hi , > > I have tried > > gsub(".*York(\\d+).*", "\\1", grep("New York", x, value = TRUE)) > > and outputs > > "P New York722AZ" "K New York20" > but that is not what i want, I want the output to be > > 722,20 > > > -- > View this message in context: > http://n4.nabble.com/using-grep-tp1571102p1571251.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.