list representing the dataset from a metabolomics experiment.
indexes
index vector with the samples that are going to be aggregated (e.g. c(1,1,2,2), this index vector will aggregate the first two samples and the last two samples).
aggreg.fn
aggregation function (e.g. "mean", "median", etc).
# NOT RUN {## Example of aggregating samples propolis_proc = missingvalues_imputation(propolis)
dataset = aggregate_samples(propolis_proc, as.integer(propolis$metadata$seasons), "mean")
# }