createSampleFromTable {maDB}R Documentation

Create a new Sample object using data from a matrix

Description

createSampleFromTable This function creates a new instance from the class Sample using the data in the matrix submitted as attribute. The column names of the matrix should correspond to the attribute names (slot names) of the Sample class. All "\_" in the column names are replaced by a dot (for example for the slot exposure.time of the Sample class the table should have a column named “exposure_time”).

Usage

createSampleFromTable(table)

Arguments

table The data frame/matrix that contains the values with which the new Sample object should be filled.

Details

This function a new Sample object filling its slots with the values of the data table submitted.

Author(s)

Johannes Rainer

References

See Also

Sample-class

Examples






[Package maDB version 1.10.0 Index]