tax_expand_lat {palaeoverse} | R Documentation |
Generate pseudo-occurrences from latitudinal range data
Description
A function to generate pseudo-occurrences for taxa based on latitudinal
ranges (e.g. the output of the 'lat' method in
tax_range_space
).
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 latitudinal
bin through which the taxon ranges.
Usage
tax_expand_lat(taxdf, bins, max_lat = "max_lat", min_lat = "min_lat")
Arguments
taxdf |
|
bins |
|
max_lat |
|
min_lat |
|
Value
A dataframe
where each row represents a latitudinal bin which
a taxon ranges through. The columns are identical to those in the
user-supplied data with additional columns included to identify bins. Output
will be returned in the order of supplied bins.
Developer(s)
Lewis A. Jones & William Gearty
Reviewer(s)
Christopher D. Dean
Examples
bins <- lat_bins()
taxdf <- data.frame(name = c("A", "B", "C"),
max_lat = c(60, 20, -10),
min_lat = c(20, -40, -60))
ex <- tax_expand_lat(taxdf = taxdf,
bins = bins,
max_lat = "max_lat",
min_lat = "min_lat")