Skip to contents

This function tests if the object x is a valid contactmatrix_list object.

Usage

test_contactmatrix(x)

Arguments

x

object to test

Value

A logical (TRUE or FALSE) indicating whether this object is a valid contactmatrix_list object.

Note

Checks:

  • x inherits from the array class

  • x inherits from the contactmatrix class

  • x contains only numeric values

  • x is an hypercube, i.e., number of rows and number of columns are equal

  • x has a symmetric attribute of class logical