Check the type of an object using Rcpp
rxIs(obj, cls)
obj | Object to check |
---|---|
cls | Type of class. Only s3 classes for lists/environments and primitive classes are checked.
For matrix types they are distinguished as |
A boolean indicating if the object is a member of the class.
Matthew L. Fidler