mk.sptab {paleoDiv} | R Documentation |
Generate a taxon-range table based on an occurrence dataset.
Description
Generate a taxon-range table based on an occurrence dataset.
Usage
mk.sptab(
xx = NULL,
taxa = xx$tna,
earliest = xx$eag,
latest = xx$lag,
tax = NULL
)
Arguments
xx |
A data.frame() of occurrence records, containing at least the following columns: taxonomic name at level at which ranges are to be determined (e.g. species or genus), earliest possible age for each occurrence and latest possible age for each occurrence. If xx==NULL, then each column or vector must be specified individualy using the following parameters |
taxa |
column/vector containing the taxonomic variable. Defaults to xx$tna |
earliest |
column/vector containing the earliest age estimate. Defaults to xx$eag. |
latest |
column/vector containing the latest age estimate. Defaults to xx$lag. |
tax |
Optional. A single character string containing the taxon name, to be added as another column to the range table (useful for categorization, should several range tables be concatenated, e.g. using rbind()). |
Value
A data.frame() containing the taxon names, the maximum and minimum age for each taxon, and (optionally) a column with the name of the higher-level taxon.
Examples
data(archosauria)
mk.sptab(archosauria$Stegosauria)->sptab_Stegosauria