Compute regional time series of Individual Species Mean Pairwise trait distance
IndivSpecies_regional_mpd.Rd
Compute regional time series of Individual Species Mean Pairwise trait distance
Usage
IndivSpecies_regional_mpd(
df.TS.TE,
time.slice,
trait = NULL,
dist.trait = NULL,
nearest.taxon = "all",
round.digits = 1,
species = "species",
TS = "TS",
TE = "TE"
)
Arguments
- df.TS.TE
a data frame object containing at least four columns. Species names, origination time, extinction time and a trait value for each species.
- time.slice
scalar indicating the time interval between consecutive time slices
- trait
Character indicating the name of the column containing values of the traits for each species. If NULL, the default, the user must provide a distance matrix
- dist.trait
A distance matrix containing pairwise distance between species. If NULL the default, the user must provide a trait in trait argument
- nearest.taxon
scalar indicating the number of closest species that will be used to compute the mean pairwise distance. If "all", the default, all species coexisting in a time slice will be used to calculate mpd
- round.digits
scalar indicating the number of digits for time of origination and time for extinction
- species
character indicating the name of the column of the data frame containing the species name information
- TS
character indicating the name of the columns of the data frame containing the information on origination time
- TE
character indicating the name of the column of the data frame containing the information on extinction time