Learn R Programming

paleoDiv (version 0.4.0)

pdb.union: Form the union of two occurrence data.frames or remove duplicates from occurrence data.frame. Useful if parts of a clade are not included in the downloaded dataset and need to be added separately.

Description

Form the union of two occurrence data.frames or remove duplicates from occurrence data.frame. Useful if parts of a clade are not included in the downloaded dataset and need to be added separately.

Usage

pdb.union(x, id_col = x$occurrence_no)

Value

A data.frame() containing the first entry for each unique occurrence to be represented in x.

Arguments

x

Concatenated occurrence data.frames to be merged

id_col

Vector or column of x containing id to be used for determining which values contain occurrence numbers to be used for matching entries

Examples

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

Run the code above in your browser using DataLab