Test whether a object is a valid contactmatrix_list
object
Source: R/contactmatrix.R
test_contactmatrix.Rd
This function tests if the object x
is a valid contactmatrix_list
object.
Value
A logical (TRUE
or FALSE
) indicating whether this object is a
valid contactmatrix_list
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