Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't find "contains" function in "purrr" package in R

Tags:

contains

r

purrr

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?

like image 659
Romin Rajbhandari Avatar asked Mar 09 '23 08:03

Romin Rajbhandari


1 Answers

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

like image 187
Oriol Mirosa Avatar answered Mar 20 '23 08:03

Oriol Mirosa