booltype | R Documentation |
Specific methods for booltype
are required, where non-unary methods can combine multiple bollean types, particularly boolean binary operators.
booltype(x)
x |
an R object |
Function booltype
returns the boolean type of its argument.
There are currently six boolean types, booltypes
is an ordered
vector with the following ordinal levels
non-boolean types
logical
for representing any boolean data including NA
bit
for representing dense boolean data
bitwhich
for representing sparse (skewed) boolean data
which
for representing sparse boolean data with few TRUE
ri
range-indexing, for representing sparse boolean data with a single range of TRUE
one scalar element of booltypes
in case of 'nobool' it carries a name attribute with the data type.
do not rely on the internal integer codes of these levels, we might add-in hi
later
booltypes
, is.booltype
, as.booltype
unname(booltypes) str(booltypes) sapply(list(double(),integer(),logical(),bit(),bitwhich(),as.which(),ri(1,2,3)), booltype)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.