| compatible | R Documentation |
Function to detect whether two objects are compatible
compatible(x1,x2)
x1,x2 |
Two objects with |
Here, “compatible” means have the same names and levels. If an
mdm object and mhp object are compatible, then they may
be supplied to (eg) var.matrix().
The function uses identical() to compare the names and levels.
Returns a Boolean.
Cannot yet compare LoF objects.
Robin K. S. Hankin
data(mtoys)
stopifnot(compatible(toy_mhp, toy_mm))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.