Are two objects compatible?
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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.