| tax_range_time | R Documentation |
A function to calculate the temporal range of fossil taxa from occurrence data.
tax_range_time( occdf, name = "genus", min_ma = "min_ma", max_ma = "max_ma", by = "FAD", plot = FALSE )
occdf |
|
name |
|
min_ma |
|
max_ma |
|
by |
|
plot |
|
The temporal range(s) of taxa are calculated by extracting all
unique taxa (name column) from the input occdf, and checking their first
and last appearance. The temporal duration of each taxon is also calculated.
A plot of the temporal range of each taxon is also returned if plot = TRUE.
If the input data columns contain NAs, these should be removed prior to
function call.
Note: this function provides output based solely on the user input data. The true duration of a taxon is likely confounded by uncertainty in dating occurrences, and incomplete sampling and preservation.
A dataframe containing the following columns:
unique taxa (taxon), taxon ID (taxon_id), first appearance of taxon
(max_ma), last appearance of taxon (min_ma), duration of temporal
range (range_myr), and number of occurrences per taxon (n_occ) is
returned.
Lewis A. Jones
Bethany Allen & Christopher D. Dean
# Grab internal data occdf <- tetrapods # Remove NAs occdf <- subset(occdf, !is.na(order) & order != "NO_ORDER_SPECIFIED") # Temporal range ex <- tax_range_time(occdf = occdf, name = "order", plot = TRUE)