Normalize the data from the dataset with a specific method.
normalize(dataset, method, ref = NULL, constant = 1000)
list representing the dataset from a metabolomics experiment.
string specifying the normalization method. The possible values are:
"sum" normalization by sum.
"median" normalization by median.
"ref.sample" normalization by reference sample.
"ref.feature" normalization by reference feature.
the reference if method is "ref.sample" or "ref.feature".
the constant value if method is "sum".
Returns the dataset with the data normalized.