powered by
Gets a subset of specific x-values from the dataset.
subset_x_values(dataset, variables, by.index = FALSE)
list representing the dataset from a metabolomics experiment.
vector with the desired variables to get from the dataset.
if TRUE, the values of the variables argument are indexes.
Returns the dataset with the selected set of x-values.
# NOT RUN { ## Example of subsetting x-values library(specmine.datasets) data(cachexia) subset = subset_x_values(cachexia, c(1,2,10,20), by.index = TRUE) # }
Run the code above in your browser using DataLab