Description Usage Arguments Value Examples
Use one or more data variables as metadata variables.
1 | variables_as_metadata(dataset, variables, by.index = FALSE)
|
dataset |
list representing the dataset from a metabolomics experiment. |
variables |
name or index of the variables that are going to be used as metadata variables. |
by.index |
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.
1 2 3 4 | ## Example of using a variable as metadata variable
library(specmine.datasets)
data(cachexia)
dataset = variables_as_metadata(cachexia, "Creatine", by.index = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.