extinction.subsets: Getting the time subsets before and after an extinction event

View source: R/dispRity.utilities.R

extinction.subsetsR Documentation

Getting the time subsets before and after an extinction event

Description

Getting the reference (pre-extinction) and the comparison (post-extinction) time subsets

Usage

extinction.subsets(data, extinction, lag = 1, names = FALSE, as.list = FALSE)

Arguments

data

a dispRity object.

extinction

numerical, the time at the extinction event.

lag

numerical, the lag effect (i.e. how many subsets after the extinction to consider - default = 1).

names

logical, whether to display the bins names (TRUE) or not (FALSE - default).

as.list

logical, whether to output the results as a list for test.dispRity (TRUE) or not (FALSE - default).

Author(s)

Thomas Guillerme

See Also

chrono.subsets, test.dispRity

Examples

## Loading some disparity data
data(disparity)

## Time subsets for the K-Pg extinction (66 Mya)
extinction.subsets(disparity, 66, names = TRUE)

## Extinction with a lag effect of 3 slices
extinction_time <- extinction.subsets(disparity, 66, lag = 3, as.list = TRUE)

## Testing the extinction effect with a lag
test.dispRity(disparity, wilcox.test, comparisons = extinction_time,
              correction = "bonferroni")


TGuillerme/dispRity documentation built on Dec. 21, 2024, 4:05 a.m.