mergePalaeoData.Rd
It merges palaeoecological datasets with different time intervals between consecutive samples into a single dataset with samples separated by regular time intervals defined by the user
mergePalaeoData( datasets.list = NULL, time.column = NULL, interpolation.interval = NULL )
datasets.list | list of dataframes, as in |
---|---|
time.column | character string, name of the time/age column of the datasets provided in |
interpolation.interval | temporal resolution of the output data, in the same units as the age/time columns of the input data |
A dataframe with every column of the initial dataset interpolated to a regular time grid of resolution defined by interpolation.interval
. Column names follow the form datasetName.columnName, so the origin of columns can be tracked.
This function fits a loess
model of the form y ~ x
, where y
is any column given by columns.to.interpolate
and x
is the column given by the time.column
argument. The model is used to interpolate column y
on a regular time series of intervals equal to interpolation.interval
. All columns in every provided dataset go through this process to generate the final data with samples separated by regular time intervals. Non-numeric columns are ignored, and absent from the output dataframe.
#loading data data(pollen) data(climate) x <- mergePalaeoData( datasets.list = list( pollen=pollen, climate=climate ), time.column = "age", interpolation.interval = 0.2 )#>#>#>