pdb.diff: Subtract one occurrence data.frame from another, for...

View source: R/paleoDiv.R

pdb.diffR Documentation

Subtract one occurrence data.frame from another, for disentangling overlapping taxonomies or quantifying stem-lineage diversity.

Description

Subtract one occurrence data.frame from another, for disentangling overlapping taxonomies or quantifying stem-lineage diversity.

Usage

pdb.diff(x, subtract, id_col = x$occurrence_no)

Arguments

x

Occurrence data from which to subtract.

subtract

Occurrence data frame or vector of occurrence numbers to subtract from x

id_col

Vector or column of x containing id to be used for determining which values are also found in subtract or subtract$occurrence_no

Value

A data.frame() containing the difference between the two occurrence datasets, i.e. all entries that are in x but not in subtract.

Examples

data(archosauria)
pdb.union(rbind(archosauria$Ankylosauria, archosauria$Stegosauria))->Eurypoda
pdb.diff(Eurypoda, subtract=archosauria$Stegosauria)

paleoDiv documentation built on Oct. 17, 2024, 5:08 p.m.