reduce_to_paleoTS {StratPal} | R Documentation |
reduce pre-paleoTS format to paleoTS
Description
paleoTS is a format for paleontological time series. It is a summary format where interpopulation variance is provided as a parameter. As a result, taphonomic and ecological effects that act on individual specimens can not be modeled for paleoTS objects. To resolve this, the pre_paleoTS format tracks each specimen individually. This function reduces the pre-paleoTS format into standard paleoTS object, which can be used by the paleoTS package.
Usage
reduce_to_paleoTS(x, min_n = 1, na.rm = TRUE, ...)
Arguments
x |
a |
min_n |
minimum number of specimens. If the number of specimens at a sampling location falls below this number, the sampling location will be removed |
na.rm |
Logical. If sampling locations are NA (e.g., because of erosion), should the sample be removed? |
... |
other options. currently unused |
Value
a paleoTS
object
See Also
-
stasis_sl()
, strict_stasis_sl, random_walk_sl, andornstein_uhlenbeck_sl()
to simulate trait evolution on specimen level (sl), returning an object of typepre_paleoTS
Examples
x = stasis_sl(t = 0:5) # create pre_paleoTS object representing stasis on specimen level
y = reduce_to_paleoTS(x) # reduce to standard paleoTS format
plot(y)
# now analyses using the paleoTS package can be applied to y