tapas2mgcv | R Documentation |
Gathers data from a list produced with the tapas::pretreatment_data()
function, and returns a data frame that can be used to determine the trend
based on a Generalized Additive Model with the mgcv::gam()
function.
tapas2mgcv(series = NULL)
series |
A list that was generated with the
|
The tapas::pretreatment_data()
function sometimes may generate NA
values in the cm_top and cm_bot columns for the first and/or the last samples
in a temporal series. The tapas::tapasa2mgcv()
function removes these
NA values automatically by taking the sediment-accumulation rate of adjacent
binned samples.
The returned data frame includes the following columns: cm_top, cm_bot,
age_top, age_bot, volI, and in addition one column for each of the variables
that were included in the input data frame for the
tapas::pretreatment_data()
function.
The returned age corresponds to the age_top of the samples.
Walter Finsinger
mgcv2tapas()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.