Learn R Programming

metafolio (version 0.1.0)

is_quasi_ext: Return whether there was an instance of quasi extinction

Description

Return whether there was an instance of quasi extinction

Usage

is_quasi_ext(x, thresh, duration = 1)

Arguments

x

A numeric vector.

thresh

The quasi-extinction threshold in absolute numbers.

duration

The number of years below the threshold before a quasi extinction has occurred.

Examples

Run this code
# NOT RUN {
x <- seq(100, 0, length.out = 20)
is_quasi_ext(x, thresh = 10)
# }

Run the code above in your browser using DataLab