powered by
Use one or more metadata variables as variables.
metadata_as_variables(dataset, metadata.vars, by.index = FALSE)
list representing the dataset from a metabolomics experiment.
name or index of the metadata variables that are going to be used as data variables.
boolean value indicating if the metadata variables are indexes or names
Returns the dataset with the metadata variables removed from the metadata and added on the data matrix.
# NOT RUN { ## Example of using a metadata variable as data variable library(specmine.datasets) data(propolis) propolis = metadata_as_variables(propolis, "seasons", by.index = FALSE) # }
Run the code above in your browser using DataLab