unabund: Remove the mvabund Class Attribute

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Change an mvabund object to a non-mvabund object.

Usage

1

Arguments

x

an mvabund object that should be transformed into a matrix.

Details

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

Value

A matrix if x is an mvabund object otherwise x .

Author(s)

Ulrike Naumann and David Warton <David.Warton@unsw.edu.au>.

See Also

mvabund. as.mvabund. is.mvabund.

Examples

1
2
3
4
5
6
## Create an mvabund object:
abundances <- as.mvabund(matrix(1:20,5,4))

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

eddelbuettel/mvabund-tests documentation built on May 15, 2019, 10:30 p.m.