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, subjectCount) will be added as meta
data. A column OutputPath (as returned by dataSetToDataFrame()) or
outputPath fills DataSet$outputPath. Numbers in these columns are
converted to text. If both columns hold a path for a data set, OutputPath
is used. Because of this, a column outputPath is never 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)