Description Usage Arguments Value Examples
Merges the data and metadata from the dataset into a single data.frame.
1 2 | merge_data_metadata(dataset, samples = NULL,
metadata.vars = NULL, x.values = NULL, by.index = FALSE)
|
dataset |
list representing the dataset from a metabolomics experiment. |
samples |
vector with indexes or names of the samples to select |
metadata.vars |
metadata's variables. |
x.values |
vector with the desired x-values to get from the dataset. |
by.index |
if TRUE, the values of the x.values argument are indexes. |
Returns a data.frame with the data and metadata from the dataset merged.
1 2 3 4 | ## Example of merging data and metadata
library(specmine.datasets)
data(cachexia)
dt.merged = merge_data_metadata(cachexia)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.