combine.data: merge MIxS.metadata objects

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/DataFormat_Utils.R

Description

combine.data combines two MIxS.metadata objects into one, merging all common variables (columns as default).

Usage

1
combine.data(d1, d2, fill=NA, variables.as.cols=TRUE)

Arguments

d1

a MIxS.metadata object

d2

a MIxS.metadata object

fill

character or NA. A value to put into the cells that have no data.

variables.as.cols

boolean. If TRUE, the input data is assumed to have rows as samples and variables/parameters as columns. If FALSE the data is formatted the other was around. default TRUE

Details

Variables with matching names are merged, if variables.as.cols=TRUE this means columns are merged, if FALSE rows are merged. Any missing data as a result of the non-matchng variable-name will be filled by the fill argument.

Value

a MIxS.metadata object

Author(s)

Maxime Sweetlove

See Also

Other formating functions: combine.data.frame(), eMoF.to.wideTable(), wideTab.to.hierarchicalTab(), wideTable.to.eMoF()

Examples

1
2
3
4
## Not run: 
combine.data(d1=test_MIxS, d2=test_MIxS2, fill=NA, variables.as.cols=TRUE)

## End(Not run)

biodiversity-aq/OmicsMetaData documentation built on Dec. 19, 2021, 9:44 a.m.