combine_DataFiles: Combine objects

View source: R/combine_DataFiles.R

combine_DataFilesR Documentation

Combine objects

Description

Combine objects generated by Generate_DataFile and Generate_DataFile_MG

Usage

combine_DataFiles(...)

Concat_DataFile(...)

Arguments

...

list objects generated by Generate_DataFile or Generate_DataFile_MG

Details

The function allows to combine data already generated by Generate_DataFile or Generate_DataFile_MG. The number of input objects is not limited and the function works similar to the standard base R function c(), but preserves the particular structure of the objects imported and generated by 'BayLum'. The elements are combined by list element names.

Combining such data is rather useful in two scenarios:

  • The data have been already imported and treated and then stored in RData-files. Using the function combine_DataFiles() will significantly speed up the processing time,

  • simultaneous analysis of single and multi-grain OSL measurements.

Value

A nested list combining the input objects.

Function version

0.1.1

How to cite

Kreutzer, S., Christophe, C., 2024. combine_DataFiles(): Combine objects. Function version 0.1.1. In: Christophe, C., Philippe, A., Kreutzer, S., Guérin, G., Baumgarten, F.H., Frerebeau, N., 2024. BayLum: Chronological Bayesian Models Integrating Optically Stimulated. R package version 0.3.2. https://CRAN.r-project.org/package=BayLum

Author(s)

Sebastian Kreutzer, IRAMAT-CRP2A, UMR 5060, CNRS - Université Bordeaux Montaigne (France), adapting the idea from the function 'Concat_DataFile()' by Claire Christophe.

See Also

Generate_DataFile, Generate_DataFile_MG

Examples

# load data files
data(DATA1,envir = environment())
data(DATA2,envir = environment())

#combine objects
DATA3 <- combine_DataFiles(DATA1, DATA2)
str(DATA3)

R-Lum/BayLum documentation built on April 19, 2024, 9:33 a.m.