Learn R Programming

purrr (version 0.1.0)

bare-type-predicates: Bare type predicates

Description

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

  • Likeis_atomic()and unlike base Ris.atomic(),is_bare_atomic()does not returnTRUEforNULL.
  • Unlike base Ris.numeric(),is_bare_double()only returnTRUEfor floating point numbers.

See Also

type-predicates