fadlad {divDyn} | R Documentation |
FAD - LAD matrix from occurrence data
Description
Function to generate range data from an occurrence dataset.
Usage
fadlad(
x,
tax,
bin = NULL,
age = NULL,
revtime = FALSE,
na.rm = TRUE,
diffbin = TRUE
)
Arguments
x |
|
tax |
|
bin |
|
age |
|
revtime |
|
na.rm |
|
diffbin |
|
Details
The function will output First and Last Appearance Dates of the taxa in the dataset. Keep in mind that incomplete sampling will influence these data and will make the ranges appear shrunken.
The following variables are produced:
row.names
attribute: The names of the taxa.
FAD
: First appearance dates in time bin nmbers or ages.
LAD
: Last appearance dates in time bin numbers or ages.
duration
: The durations of taxa in bin numbers or ages.
Value
A data.frame, with rows corresponding to tax
entries.
Examples
data(corals)
# binned data
flBinned <- fadlad(corals, tax="genus", bin="stg")
# using basic bin lengths
flDual <- fadlad(corals, tax="genus", age=c("max_ma", "min_ma"))
# single age esimate
data(stages)
corals$mid <- stages$mid[corals$stg]
flSingle <- fadlad(corals, tax="genus", age="mid")