tax_expand_time {palaeoverse} | R Documentation |
Generate pseudo-occurrences from temporal range data
Description
A function to generate interval-level pseudo-occurrences for taxa based on
temporal ranges (e.g. the output of tax_range_time
). While the
resulting pseudo-occurrences should not be treated as equivalent to actual
occurrence data (e.g. like that from the Paleobiology Database), such
pseudo-occurrences may be useful for performing statistical analyses where
the row representing a taxon must be replicated for each interval through
which the taxon persisted.
Usage
tax_expand_time(
taxdf,
max_ma = "max_ma",
min_ma = "min_ma",
bins = NULL,
scale = "GTS2020",
rank = "stage",
ext_orig = TRUE
)
Arguments
taxdf |
|
max_ma |
|
min_ma |
|
bins |
|
scale |
|
rank |
|
ext_orig |
|
Value
A dataframe
where each row represents an interval during which
a taxon in the original user-supplied data persisted. The columns are
identical to those in the user-supplied data with additional columns
included to identify the intervals. If ext_orig
is TRUE
,
two additional columns are added to identify in which intervals taxa
originated and went extinct.
Developer(s)
William Gearty & Lewis A. Jones
Reviewer(s)
Lewis A. Jones
Examples
taxdf <- data.frame(name = c("A", "B", "C"),
max_ma = c(150, 60, 30),
min_ma = c(110, 20, 0))
ex <- tax_expand_time(taxdf)
bins <- time_bins(scale = "GTS2012", rank = "stage")
ex2 <- tax_expand_time(taxdf, bins = bins)