Transform abundance data matrix into individual like matrix to allows the use of ComIndex and ComIndexMulti on populationnal or specific traits values.
AbToInd(traits, com, type.sp.val = "count")
Individual Matrix of traits with traits in columns. "traits" matrix must have row names (e.g. species or populationnal names).
Community data matrix with species in rows and sites in column.
Either "count" or "abundance". Use abundance when all values in the com matrix are not superior to one. Using abundance is EXPERIMENTAL. This function round abundance to fit count data.
A list of objects:
Individual traits matrix
Vector of species attributes
Vector of sites attributes
Internal function