mvl_inherits: Check inheritance of R or MVL objects

View source: R/RMVL.R

mvl_inheritsR Documentation

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)

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.

Value

character string giving object class


RMVL documentation built on Nov. 2, 2023, 6:09 p.m.

Related to mvl_inherits in RMVL...