I checked different posts on this, but still couldn't figure out why this is not working:
c=c("HI","NO","YESS")
grep("YES",c,fixed=T)
[1] 3
If I am using fixed = T
, why I am still getting a results when there is no exact match for "YES". I want only exact matches like when I use grep -w
in bash.