<<<<<<< HEAD The local community of a `roleData` — localComm-class • roleRThe local community of a `roleData` — localComm-class • roleR Skip to contents

An S4 class to specify the state of a local community

Usage

localComm(indSpecies, indTrait, indSeqs, spGenDiv)

Slots

indSpecies

a numeric vector of the species IDs for each individual For example indSpecies[2] is the ID of the species of individual 2

indTrait

a numeric vector of the trait values for each individual

indSeqs

a character vector of the gene sequences for each individual

spGenDiv

a numeric vector of the genetic diversities for each species

spTrait

a numeric vector of the mean trait value of each species

spAbund

a numeric vector of the abundance (number of individuals) of each species

spAbundHarmMean

numeric vector of the harmonic mean of species abundances Equivalent to n / the reciprocal sum of abundances since last emergence where n is the number of steps in the reciprocal sum Used in genetic simulation in roleR

spLastOriginStep

numeric vector of the last origin step of each species The last origin step is the last step where a new species appeared in the local community (either totally new or after an extinction in the local) Used in genetic simulation in roleR

spExtinctionStep

numeric vector of the last extinction (extirpation) step of each species Used in genetic simulation in roleR