data2mat {spaa}R Documentation

Convert species list data to species matrix

Description

This function can be used to convert the species list to species matrix. The rows of the output matrix are plots, or sites. The columns are the species.

Usage

data2mat(data = data)

Arguments

data

The input data

Details

The input data will have to include :species,plots or sites, abundance, specifically, a column named "abundance" must be specified.

Value

Return a species matrix with each row for each plot, and each column for species.

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

References

None

Examples

data(testdata)
spmatrix <- data2mat(testdata)

[Package spaa version 0.2.2 Index]