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