Function to generate range data from an occurrence dataset.
Arguments
- x
(data.frame)
: Occurrence data.- tax
(character)
: Column name of taxon names.- bin
(character)
: Column name(s) of the discreet bin variable(s). If two column names are entered, then they will interpreted as minimum and maximum uncertainty (see examples) By default, time flows from lower to higher numbers. You can change this behavior by settingrevtime=FALSE
. Either abin
orage
argument is mandatory.- age
(character)
: Column name(s) of the continuous age variable(s). If two column names are entered, then they will interpreted as the minimum and maximum age uncertainty. (see examples) By default, time flows from higher to lower numbers. You can change this behavior by settingrevtime=FALSE
. Either abin
orage
argument is mandatory.- revtime
(logical)
: Should time be reversed?- na.rm
(logical)
: Should taxa that have no valid FADs or LADs (due toNA
entries) be removed from the output?- diffbin
(logical)
: Difference-based duration for discreet time (only applicabble to cases whenbin
is provided). If set toTRUE
, single-interval taxa will0
durations. Setting this argument toFALSE
will add code1 to the durations of all taxa.
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.