Structure and classes of the admtools package"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(admtools)

Introduction

This vignette provides an overview of the larger scale structure of the admtools package and the classes used therein.

S3 Classes

S3 class adm

Description

The S3 class adm represents age depth models. Structurally, they are lists with five fields:

h[i] is the height at time t[i]. h and t must be of same length and have at least 2 elements, t must be strictly increasing and h must be nondecreasing. length(destr) must be identical to length(t) - 1. destr[i] == TRUE indicates that the time interval from t[i] to t[i+1] is destructive and no information is preserved. Whether tie points are considered destructive is determined by the function is_destructive. Geologically, destr[i] == TRUE should imply h[i] == h[i+1] , as no sediment is accumulated during hiatuses.

Construction

The following functions construct adm objects:

Logic

The following functions examine the logic of adm objects:

Representation

The following functions yield a representation of adm objects:

Modification

The following functions modify adm objects:

Extracting information

The following functions extract information from adm objects:

Transformation into other S3 classes

The following functions transform adm objects into other S3 classes:

S3 class sac

Description

The S3 class sac represents sediment accumulation curves. Structurally, they are lists with four fields:

h[i] is the height at time t[i]. h and t must be of same length and have at least 2 elements, t must be increasing.

Construction

The following functions construct sac objects:

Standard constructor is tp_to_sac (tie point to sediment accumulation curve)

Logic

The following functions inspect the logic of sac objects:

Representation

The following functions yield a representation of sac objects:

Modification

The following functions modify sac objects:

Extracting information

The following functions extract information from sac objects:

Transformation into other S3 classes

The following functions transform sac objects into other S3 classes:

S3 class multiadm

Description

The S3 class multiadm represents multiple age depth models.. Structurally, they are lists with the following elements:

h[[i]][j] is the height of the i-th age-depth model at time t[[i]][j]. For each i, the quintuple h[[i]], t[[i]], destr[[i]], T_unit and L_unit specify an adm object with the constraints as specified in the section S3 class adm (e.g., on monotonicity, length, etc.). T_unit and L_unit are shared among all age-depth models in an multiamd object.

Construction

The following functions construct multiadm objects:

Logic

The following functions inspect the logic of multiadm objects:

Representation

The following functions yield a representation multiadm objects:

Modification

The following functions modify multiadm objects:

Extracting information

The following functions extract information from multiadm objects:

Transformation into other S3 classes

The following functions transform multiadm objects into other S3 classes:

S3 classes stratlist and timelist

stratlist and timelist inherit from the base list. They are list of stratigraphic positions or times, associated with other data (e.g. trait values, proxy values)

Description

Construction

Representation

Methods implemented for external S3 classes

S3 class list

admtools implements the following methods for list:

S3 class phylo

admtools implements the following methods for phylo:

Class numeric

Plotting

The following functions are used for plotting:

Internals

The following functions are used internally and not exposed to users. They can be accessed via admtools:::function_name.

Vignettes



Try the admtools package in your browser

Any scripts or data that you put into this service are public.

admtools documentation built on Oct. 4, 2024, 1:09 a.m.