errcheck_data: Error check a data matrix.
Description
Error check a data matrix.
Usage
errcheck_data(X, calledby)
Arguments
X
a matrix with counts or densities arranged in species by years. No NAs or negative values allowed,
constant species not allowed.
calledby
the function calling this one
Value
errcheck_data
returns nothing but throws and error if the inputs do not
meet the requirements