mergeData {GCDkit} | R Documentation |
These functions append new data to the analyses currently stored in the memory of the GCDkit.
mergeDataRows(which.file=NULL) mergeDataCols(which.file=NULL,all.rows=NULL)
which.file |
optional filename of th file to be appended. |
all.rows |
logical; should be all samples preserved, even those missing in one of the datasets? |
The function 'mergeDataRows
' appends new samples (i.e. new rows).
The structures of both datafiles are, as much as possible, matched against each
other, and, if necessary, new empty columns are introduced to the original data
file, if they are missing. If any duplicated sample names are found, they are
replaced by sequence numbers and a new column 'old.ID
' is appended to the
labels. Also appended is a column named 'file
' containing the name of the
file the particular sample originated from.
'mergeDataCols
' adds new data (i.e. new data columns) to the samples
stored in the memory. If desired ('all.rows
' is 'TRUE
'),
included are also samples that occur solely in one of the files.
For the guidelines on correct formatting of the data files see loadData
.
WR |
numeric matrix: all numeric data |
labels |
data frame: all at least partly character fields; |
The function prints a short summary about the loaded file.
Vojtěch Janoušek, vojtech.janousek@geology.cz