Description Usage Arguments Details Value See Also Examples
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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)
|
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.
TRUE
or FALSE
Other type.predicates: scalar-type-predicates
,
type-predicates
1 2 3 4 | is_list(data.frame(a = 1))
is_bare_list(data.frame(a = 1))
is_double(Sys.Date())
is_bare_double(Sys.Date())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.