4
votes

Currently I have R version 3.4.1 with "purrr" package version 0.2.3. The problem that I'm having is the "purrr" package doesn't have "contains" function and whenever I try to use "contains" function, it just gives me the "contains" function from "dplyr" package. How do I get "contains" function in "purrr" package?

1
Deleted my answer. My version of purrr was old.Nathan Werth

1 Answers

7
votes

Because of the conflict with dplyr, contains() was renamed in purr to has_element(), so you should use the latter.