mvabund (version 3.11.9)

unabund: Remove the mvabund Class Attribute

Description

Change an mvabund object to a non-mvabund object.

Usage

unabund(x)

Arguments

x
an mvabund object that should be transformed into a matrix.

Value

x is an mvabund object otherwise x .

Details

unabund doesn't convert x but only removes the mvabund class attribute.

See Also

mvabund. as.mvabund. is.mvabund.

Examples

Run this code
## Create an mvabund object:
abundances <- as.mvabund(matrix(1:20,5,4))

## Restore the original object:
mat <- unabund(x=abundances)
mat

Run the code above in your browser using DataCamp Workspace