Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/DataFormat_Utils.R
combine.data combines two MIxS.metadata objects into one, merging all common variables (columns as default).
1 | combine.data(d1, d2, fill=NA, variables.as.cols=TRUE)
|
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 |
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.
a MIxS.metadata object
Maxime Sweetlove
Other formating functions:
combine.data.frame()
,
eMoF.to.wideTable()
,
wideTab.to.hierarchicalTab()
,
wideTable.to.eMoF()
1 2 3 4 | ## Not run:
combine.data(d1=test_MIxS, d2=test_MIxS2, fill=NA, variables.as.cols=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.