Displaying 1 result from an estimated 1 matches for "tp20746365p20746365".
2008 Nov 29
2
Using grep() to subset lines of text
...Any ideas please.
a = c(2,3)
b = NULL
b[1] = "aaa 2 aaa"
b[2] = "2 aaa"
b[3] = "3 aaa"
b[4] = "aaa 3 aaa"
grep(paste("^",a, sep=""), b )
--
View this message in context: http://www.nabble.com/Using-grep%28%29-to-subset-lines-of-text-tp20746365p20746365.html
Sent from the R help mailing list archive at Nabble.com.