contains: Does a list contain an object?

Description Usage Arguments Examples

Description

Does a list contain an object?

Usage

1
contains(.x, .y)

Arguments

.x

A list or atomic vector.

.y

Object to test for

Examples

1
2
3
x <- list(1:10, 5, 9.9)
x %>% contains(1:10)
x %>% contains(3)


Search within the purrr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.