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.
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)
object to be tested.
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.