Learn R Programming

RMVL (version 1.1.0.1)

mvl_inherits: Check inheritance of R or MVL objects

Description

This function works just like the usual R inherits(), except that for MVL_OBJECTS it used the class value stored in the MVL file. For non-MVL objects the function simply calls the usual R inherit(), so it can be used instead of inherit() for code that operates on both usual R objects and MVL objects.

Usage

mvl_inherits(x, clstr, which = FALSE)

Value

character string giving object class

Arguments

x

any object

clstr

classes to match against

which

when TRUE return a boolean array indicating of which classes named in clstr are inherited by x. When FALSE return a single boolean indicating inheritance of any class named in clstr.