Learn R Programming

HMPTrees (version 1.4)

mergeDataSets: Merge Multiple Data Sets

Description

This function can take any number of data sets, calculate their individual and combined MLEs and then merge them.

Usage

mergeDataSets(dataList, calcMLE = FALSE, uniqueNames = FALSE, data = NULL)

Arguments

dataList

A list of data frames in which each column contains the rdp read counts for every taxa given in the row names.

calcMLE

If 'FALSE' the MLEs for the data sets will not be calculated, otherwise they are added to the end.

uniqueNames

If 'TRUE' the column names in the combined data set will be appended to insure uniqueness, otherwise the column names will follow the naming process from the merge function.

data

Deprecated. Replaced with dataList.

Value

A single data set containing all the data from the input data sets, in addition to their individual MLEs and a combined MLE if requested.

Details

Although not required, all data sets should be standardized to the same number of reads before merging.

Examples

Run this code
	data(saliva)
	data(stool)
	
	dataComb <- mergeDataSets(list(saliva, stool))

Run the code above in your browser using DataLab