It seems that you are getting the stats::filter function, not dplyr . To make sure you are correct, use the dplyr::filter notation.
d = data.frame(x=1:10, name=c("foo","bar","baz","bar","bar","baz","fnord","qar","qux","quux")) filter(d, !grepl("ar|ux", name)) Error in grepl("ar|ux", name) : object 'name' not found dplyr::filter(d, !grepl("ar|ux", name)) x name 1 1 foo 2 3 baz 3 6 baz 4 7 fnord
You don't even need to make library(dplyr) for this to work - you really need dplyr .
This works for functions from any package.
source share