Creates a list of DataSet objects from a data.frame
Source: R/utilities-data-set.R
dataSetsFromDataFrame.RdCreates a list of DataSet objects from a data.frame
Details
Creates DataSet objects from a data.frame with the same structure
as returned by dataSetToDataFrame(). Each unique value in the name column
results in one DataSet object.
Any columns beyond the standard columns (name, xValues, yValues,
yErrorValues, xDimension, xUnit, yDimension, yUnit, yErrorType,
yErrorUnit, molWeight, lloq) will be added as meta data.
Examples
dataSet <- DataSet$new(name = "MyData")
dataSet$setValues(xValues = c(1, 2, 3), yValues = c(10, 20, 30))
df <- dataSetToDataFrame(dataSet)
dataSets <- dataSetsFromDataFrame(df)