check.mat: Matrix ANT check

View source: R/check.matrix.R

check.matR Documentation

Matrix ANT check

Description

check if the input is a square adjacency matrix or a list of squares adjacency matrices.

Usage

check.mat(M)

Arguments

M

a square adjacency matrix or a list of square adjacency matrices

Details

tests if M is not a data frame and if M is a matrix and if it is a square matrix. If the input is a list then it check for all elements of the list if they are not a data frame and if they are a square adjacency matrix.

Value

Nothing if M is a square adjacency matrix or a list of square adjacencies matrices.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.


SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.