Skip to content
Prev 166478 / 398502 Next

grep : escape "*"

* must be escaped for grep with \ and \ must be escaped for R itself
with another \, so you need

grep("\\*", c("/3", "2*3", "4-4"))

Gabor

2009/1/9 David Hajage <dhajage.r at gmail.com>: