Learn R Programming

paleoDiv (version 0.4.6)

divdistr_int: Count number of taxon records overlapping a specific time interval.

Description

Count number of taxon records overlapping a specific time interval.

Usage

divdistr_int(x, table = NULL, ids = FALSE, max = table$max, min = table$min)

Value

A single numeric giving the number of entries in table overlapping the specified interval, or a numeric vector giving their indices.

Arguments

x

A numeric vector of length 2 specifying the start and end (in ma) of the time interval in question.

table

Taxon-range table to use

ids

Logical whether to return ids of entries in taxon-range table (defaults to FALSE) or their number

max

Vector or column containing the maximum age of each entry in the taxon-range table. Defaults to table$max

min

Vector or column containing the minimum age of each entry in the taxon-range table. Defaults to table$min

Examples

Run this code
data(archosauria)
divdistr_int(x=c(201,220), table=archosauria$sptab_Coelophysoidea)

Run the code above in your browser using DataLab