Assert whether a object is a valid contactmatrix
object
Source: R/contactmatrix.R
assert_contactmatrix.Rd
This function asserts that the object x
is a valid contactmatrix
object.
Note
Checks:
x
inherits from thearray
classx
inherits from thecontactmatrix
classx
contains only numeric valuesx
is an hypercube, i.e., number of rows and number of columns are equalx
has asymmetric
attribute of classlogical