mvabund
creates an mvabund object.
as.mvabund
attempts to turn its argument into an mvabund object.
is.mvabund
tests if the argument is an mvabund object.
mvabund
is a class of objects for which special-purpose plotting and regression functions have been written in the mvabund-package
. The above are useful preliminary functions before analysing data using the special-purpose functions. These new functions were written specially for the analysis of multivariate abundance data in ecology, hence the title 'mvabund'.mvabund( ..., row.names=NULL, check.rows=FALSE, check.names=TRUE,
var.names=NULL, neg=FALSE, na.rm=FALSE )
as.mvabund(x)
is.mvabund(x)
NULL
or a single integer or character string specifying
a column to be used as row names, or a character
or integer vector giving the row names for the mvabund object.TRUE
then the rows are checked for consistency of length
and names.TRUE
then the names of the variables are
checked to ensure that they are syntactically valid variable names
and are not duplicated. If necessary they are adjusted (by make.names) so that
they are.NULL
or a character vector giving the column names for
the mvabund object.FALSE
negative values will cause an error message.mvabund
and as.mvabund
returns an mvabund object.
is.mvabund
returns TRUE
if x
is a matrix and FALSE
otherwise.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.unabund
, mvformula
, plot.mvabund
,
Also see the mvabund-package
.data(solberg)
## Create an mvabund object:
solbergdat <- mvabund(solberg$abund)
## Turn solberg$abund into an mvabund object and store as solbergdat:
solbergdat <- as.mvabund(solberg$abund)
## Check if solbergdat is an mvabund object:
is.mvabund(solbergdat)
Run the code above in your browser using DataLab