Skip to contents

This function asserts that the object x is a valid contactmatrix object.

Usage

assert_contactmatrix(x)

Arguments

x

object to test

Value

An error if x is not a valid contactmatrix object and x invisibly otherwise.

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