Learn R Programming

StratPal (version 0.4.0)

reduce_to_paleoTS: 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, ...)

Value

a paleoTS object

Arguments

x

a pre_paleoTS object

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

See Also

  • stasis_sl(), strict_stasis_sl, random_walk_sl, and ornstein_uhlenbeck_sl() to simulate trait evolution on specimen level (sl), returning an object of type pre_paleoTS

Examples

Run this code
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

Run the code above in your browser using DataLab