Skip to content
Prev 20936 / 63424 Next

grep() and factors

On 6/5/06, Bill Dunlap <bill at insightful.com> wrote:
I would have expected

If non-character text arguments are accepted I would have expected
that they be coerced to character so that
grep(pattern, text, ...) would return the same result as
grep(pattern, as.character(text), ...)