powered by
Merges the data and metadata from the dataset into a single data.frame.
merge_data_metadata(dataset, samples = NULL, metadata.vars = NULL, x.values = NULL, by.index = FALSE)
list representing the dataset from a metabolomics experiment.
vector with indexes or names of the samples to select
metadata's variables.
vector with the desired x-values to get from the dataset.
if TRUE, the values of the x.values argument are indexes.
Returns a data.frame with the data and metadata from the dataset merged.
# NOT RUN { ## Example of merging data and metadata library(specmine.datasets) data(cachexia) dt.merged = merge_data_metadata(cachexia) # }
Run the code above in your browser using DataLab