Download data from the paleobiology database.
pdb(
taxon,
interval = "all",
what = "occs",
full = FALSE,
base = "https://paleobiodb.org/data1.2/",
file = "list.csv",
cc = NULL,
envtype = NULL,
append_additional = NULL
)
A data.frame() containing the downloaded paleobioDB dataset. The column "identified_name" will be copied into the column "tna", and (if what==occs) the columns "max_ma" and "min_ma" will be copied into the columns named "eag" and "lag" respectively, maintaining compatibility with the output of the deprecated package "paleobioDB" for those variable names.
A taxon (base_name) for which to download records.
A character string indicating over which temporal interval to download data (defaults to "all"), e.g. "Phanerozoic" or "Jurassic".
The type of data to download (for details, see https://paleobiodb.org/data1.2/). Defaults to "occs", which downloads occurrence data. Setting this parameter to "colls" will instead download collection data.
A logical indicating whether or not the full dataset is to be downloaded (defaults to FALSE). At the expense of larger file size, the full dataset contains a large number of additional columns containing data such as stratigraphy, phylogeny and (paleo)geography, which is useful for various purposes but not strictly necessary for graphing paleodiversity.
Character string containing base url to use. Defaults to https://paleobiodb.org/data1.2/. Entering "dev" serves as a shortcut to use https://dev.paleobiodb.org/data1.2/ instead (can sometimes be helpful if one of the two is unavailable).
Character string containing which file name to look for. Defaults to list.csv.
Selection for continent (e.g. EUR for Europe, see paleobiodb.org documentation)
Selection for environment type (e.g. marine)
Any additional character string to append to URL for pdb dataset
pdb("Stegosauria")->Stegosauria
Run the code above in your browser using DataLab