pdb.diff function

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

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

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

Returns

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)
  • Maintainer: Darius Nau
  • License: GPL (>= 3)
  • Last published: 2025-03-23

Useful links