createSampleFromTable {maDB} | R Documentation |
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”).
createSampleFromTable(table)
table |
The data frame/matrix that contains the values with which the new Sample object should be filled. |
This function a new Sample object filling its slots with the values of the data table submitted.
Johannes Rainer