Learn R Programming

paleoDiv (version 0.4.0)

pdb.diff: 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)

Value

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

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

Examples

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

Run the code above in your browser using DataLab