Structure and classes of the stratcols package
Source:vignettes/stratcols_doc.Rmd
stratcols_doc.Rmd
Introduction
This vignette provides an overview of the structure of the
stratcols
package and the classes used therein.
S3 classes
S3 class stratcol
Description
The S3 class stratcol
represents a simple
stratigraphic column. Structurally,
they are lists with 3 fields:
bdry
: numeric vector, boundary of beds or units in the stratigraphic columnfa
: vector, facies names of the bedsL_unit
:NULL
or a string, length unit of the bed thickness
The fields have the following constraints: fa
must have
exactly one element less than bdry
. bdry
must
have at least 2 elements.
Logic
The following functions examine the logic of stratcol
objects:
-
is_stratcol
: is an object a validstratcol
object?
Representation
-
plot.stratcol
for basic plotting. Wraps theStratigrapheR
package. -
print.stratcol
for printing stratigraphic columns to the console -
summary.stratcol
for printing a summary of a stratigraphic column to the console
Modification
The following functions modify existing stratcol
objects:
-
set_L_unit
to set length unit
Extracting information
The following functions extract information from
stratcol
objects:
bed_thickness
facies_names
: get facies names of all bedsfacies_repetitions
: are there successive beds with identical facies?get_base
: position of lowest bed boundaryget_L_unit
: extract length unitmerge_beds
: combine beds in stratigraphic columnno_beds
: number of beds in columnno_facies
: number of distinct facies in columntotal_thickness
: total thickness of columnunique_facies_names
: get unique names of facies
Further reading
See also
vignette("stratcols")
for an overview of the available functionalit of the
stratcols
package, including how to create stratigraphic
columns, plot them and modify them.
See
vignette("stratorder")
for available methods to estimate stratigraphic order metrics, such as the runs order metric (ROM) and the Markov order metric (MOM).