R: Check the type of an object using Rcpp

rxIs {RxODE} | R Documentation

## Check the type of an object using Rcpp

### Description

Check the type of an object using Rcpp

### Usage

    rxIs(obj, cls)

### Arguments

`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 `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)

### Value

A boolean indicating if the object is a member of the class.

### Author(s)

Matthew L. Fidler

[Package RxODE version 1.1.2 Index]