bare-type-predicates

0th

Percentile

Bare type predicates

These predicates check for a given type but only return TRUE for bare R objects. Bare objects have no class attributes. For example, a data frame is a list, but not a bare list.

Usage
is_bare_list(x)

is_bare_atomic(x)

is_bare_vector(x)

is_bare_double(x)

is_bare_integer(x)

is_bare_numeric(x)

is_bare_character(x)

is_bare_logical(x)

Arguments
x

object to be tested.

Details

  • Like is_atomic() and unlike base R is.atomic(), is_bare_atomic() does not return TRUE for NULL.

  • Unlike base R is.numeric(), is_bare_double() only returns TRUE for floating point numbers.

See Also

type-predicates scalar-type-predicates

Aliases
  • bare-type-predicates
  • is_bare_list
  • is_bare_atomic
  • is_bare_vector
  • is_bare_double
  • is_bare_integer
  • is_bare_numeric
  • is_bare_character
  • is_bare_logical
Documentation reproduced from package purrr, version 0.2.2.2, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.