Learn R Programming

cati (version 0.8)

ab_to_ind: Internal function. Transform abundance data matrix into individual like matrix.

Description

Transform abundance data matrix into individual like matrix to allows the use of com.index and com.index.multi on populationnal or specific traits values.

Usage

ab_to_ind(traits, com, type="count")

Arguments

traits
Individual Matrix of traits with traits in columns. "traits" matrix must have row names (e.g. species or populationnal names).
com
Community data matrix with species in rows and sites in column.
type
Either "count" or "abundance". Use abundance when all values in the com matrix are not superior to one.

Value

  • A list of objects:
  • $traitsIndividual traits matrix
  • $spVector of species attributes
  • $ind.plotVector of sites attributes

Details

Internal function