Diagnosing boolean types
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 |
non-boolean types
logicalfor representing any boolean data including NA
bitfor representing dense boolean data
bitwhichfor representing sparse (skewed) boolean data
whichfor representing sparse boolean data with few TRUE
rirange-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
unname(booltypes) str(booltypes) sapply(list(double(),integer(),logical(),bit(),bitwhich(),as.which(),ri(1,2,3)), booltype)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.