Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compatible

Are two objects compatible?


Description

Function to detect whether two objects are compatible

Usage

compatible(x1,x2)

Arguments

x1,x2

Two objects with names and levels. Typically either objects of class mhp or mdm.

Details

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.

Value

Returns a Boolean.

Note

Cannot yet compare LoF objects.

Author(s)

Robin K. S. Hankin

Examples

data(mtoys)
stopifnot(compatible(toy_mhp, toy_mm))

multivator

A Multivariate Emulator

v1.1-10
GPL-2
Authors
Robin K. S. Hankin [aut, cre] (<https://orcid.org/0000-0001-5982-0415>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.