is_there: Check if object exists

Description Usage Arguments Examples

Description

Check if object exists

Usage

1
is_there(x, env = parent.frame())

Arguments

x

object name.

env

an environment.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
lst <- list(
  list(a = 1, b = "a"),
  list(a = 2),
  list(a = 3, b = NULL),
  list(a = 4, b = NA)
)

# show only the entries where "b" was declared

lst %>%
  filter(is_there(b))

twolodzko/lolplyr documentation built on May 14, 2019, 8:22 a.m.