Description Usage Arguments Value Examples
Gets a subset of random samples from the dataset.
1 | subset_random_samples(dataset, nsamples)
|
dataset |
list representing the dataset from a metabolomics experiment. |
nsamples |
integer representing the number of samples that we want to get. |
Returns the dataset with a number of random samples.
1 2 3 4 | ## Example of subsetting random samples
library(specmine.datasets)
data(cachexia)
subset = subset_random_samples(cachexia, 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.