Displaying 1 result from an estimated 1 matches for "a12029243".
Did you mean:
1029243
2007 Aug 07
3
About grep
Hi,everyone.
I have a problem when using the grep.
for example:
a <- c("aa","aba","abac")
b<- c("ab","aba")
I want to match the whole word,so
grep("^aba$",a)
it returns 2
but when I used it a more useful way:
grep("^b[2]$",a),
it doesn't work at all, it can't find it, returning integer(0).
How can I chang the