constrainAges: Constrain a dataset to only occurrences within a certain...

Description Usage Arguments Details Value Author(s) Examples

View source: R/constrainAges.R

Description

Assign fossil occurrences to different intervals within a geologic timescale, then remove occurrences that are not temporally constrained to a single interval within that timescale.

Usage

1
2
3
constrainAges(Data, Timescale)

multiplyAges(Data, Timescale)

Arguments

Data

A data frame

Timescale

A data frame

Details

Cull a paleobiology database data frame to only occurrences temporally constrained to be within a certain level of the geologic timescale (e.g., period, epoch). The geologic timescale should come from the Macrostrat database, but custom time-scales can be used if structured in the same way. See downloadTime for how to download a timescale.

Value

A data frame

Author(s)

Andrew A. Zaffos

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Download a test dataset of Cenozoic bivalves.
# DataPBDB<-downloadPBDB(Taxa="Bivalvia",StartInterval="Cenozoic",StopInterval="Cenozoic")

# Download the international epochs timescale from macrostrat.org
# Epochs<-downloadTime("international epochs")

# Find only occurrences that are temporally constrained to a single international epoch
# ConstrainedPBDB<-constrainAges(DataPBDB,Timescale=Epochs)

# Create mutliple instances of a single occurrence for each epoch it occurs in
# MultipliedPBDB<-multiplyAges(DataPBDB,Timescale=Epochs)

velociraptr documentation built on Aug. 1, 2019, 1:05 a.m.