Check the type of an object using Rcpp
rxIs(obj, cls)
Object to check
Type of class. Only s3 classes for lists/environments and primitive classes are checked.
For matrix types they are distinguished as numeric.matrix
, integer.matrix
,
logical.matrix
, and character.matrix
as well as the traditional matrix
class. Additionally checks for event.data.frame
which is an data.frame
object
with time
, evid
and amt
. (UPPER, lower or Title cases accepted)
A boolean indicating if the object is a member of the class.