contains: Does a list contain an object?

Description Usage Arguments Examples

View source: R/find-position.R

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)

purrr documentation built on May 19, 2017, 11:10 a.m.

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