Bare type predicates

Share:

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.