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)
x
: Occurrence data from which to subtract.subtract
: Occurrence data frame or vector of occurrence numbers to subtract from xid_col
: Vector or column of x containing id to be used for determining which values are also found in subtract or subtract$occurrence_noA data.frame() containing the difference between the two occurrence datasets, i.e. all entries that are in x but not in subtract.
data(archosauria) pdb.union(rbind(archosauria$Ankylosauria, archosauria$Stegosauria))->Eurypoda pdb.diff(Eurypoda, subtract=archosauria$Stegosauria)
Useful links