It is desirable to convert abundance data to mvabund
objects, to allow
automatic use of all methods for mvabund objects, for example the provided
methods for plotting, linear and generalised linear model-fitting and inference.
Some more technical details:
mvabund
objects always have two dimensions.
mvabund
converts its arguments into an mvabund object. The supplied argument can be a matrix, data frame, a list of vectors, or several vectors as separate arguments.
If elements of the created mvabund
object are not numeric, a warning will be printed.
If row.names
are not supplied, the row names of the mvabund
object will be NULL
. If the length of row.names does not match the
number of rows or there are duplicates, an error message will result.