powered by
Gets a subset of random samples from the dataset.
subset_random_samples(dataset, nsamples)
list representing the dataset from a metabolomics experiment.
integer representing the number of samples that we want to get.
Returns the dataset with a number of random samples.
# NOT RUN { ## Example of subsetting random samples library(specmine.datasets) data(cachexia) subset = subset_random_samples(cachexia, 15) # }
Run the code above in your browser using DataLab