eMoF.to.wideTable: convert a DarwinCore extended Measurement or Fact (eMoF) file...

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

View source: R/DataFormat_Utils.R

Description

converts a DarwinCore extended Measurement Or Fact (eMOF) file, which is has a "long" file format into a wide tabular format

Usage

1

Arguments

dataset

a dataframe of the eMoF file

Details

Long formated data if great for data arciving, but is difficult to use in day-to-day statistical analyses. This function extracts the data from an eMoF file and puts it in a wide sample x variable table

Value

a list of length 3: "$data" the data in a wide formt, "$units" the units, and "$method" the methods

Author(s)

Maxime Sweetlove

See Also

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

Examples

1
2
3
4
5
6
sampleNames <- c("sample_1", "sample_2")
test_emof <- data.frame(eventID = c(rep(c("sample_1", "sample_2"), 2)),
                        measurementType = factor(c(rep("var1", 2), rep("var2", 2))), 
                        measurementValue = c(1:4),
                        measurementUnit = c(rep("unit1", 2), rep("unit2", 2)))
eMoF.to.wideTable(test_emof)

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