calc.fd: Calculate model functional diversity

Description Usage Arguments Note

Description

This function calculates functional diversity at the end of the model simulation and updates the Results dataframe.

Usage

1
calc.fd(Results, SpTraits, abund.mat, spe, resolution, log.trans, sv, num.tp)

Arguments

Results

The results file to be updated

SpTraits

A dataframe containing the Species Trait values

abund.mat

A matrix giving abundances for each species and cell

spe

The total number of species in the regional species pool

resolution

The number of decimal places to round functional traits

log.trans

Whether or not to log-transform functional traits (this may be broken)

sv

An indicator parameter

num.tp

An indicator to assist in updating the correct row of the Results

Note

The intention is to add an option to allow this to be calculated at intermediate model steps


akeyel/spatialdemography documentation built on May 12, 2019, 4:43 a.m.