Learn R Programming

BayLum (version 0.3.2)

combine_DataFiles: Combine objects

Description

Combine objects generated by Generate_DataFile and Generate_DataFile_MG

Usage

combine_DataFiles(...)

Concat_DataFile(...)

Value

A nested list combining the input objects.

Arguments

...

list objects generated by Generate_DataFile or Generate_DataFile_MG

Function version

0.1.1

Author

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

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.

See Also

Generate_DataFile, Generate_DataFile_MG

Examples

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

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

Run the code above in your browser using DataLab