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