mergeData {GCDkit}R Documentation

Appending data to a current data set

Description

These functions append new data to the analyses currently stored in the memory of the GCDkit.

Usage

mergeDataRows()
mergeDataCols(all.rows=NULL)

Arguments

all.rows

logical; should be all samples preserved, even those missing in one of the datasets ?

Details

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.

Value

WR

numeric matrix: all numeric data

labels

data frame: all at least partly character fields; labels$Symbol contains plotting symbols and labels$Colour the plotting colours

The function prints a short summary about the loaded file.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

'loadData' 'saveData' 'merge'


[Package GCDkit version 3.00 Index]