merge_data_metadata: Merge data and metadata

Description Usage Arguments Value Examples

Description

Merges the data and metadata from the dataset into a single data.frame.

Usage

1
2
merge_data_metadata(dataset, samples = NULL, 
metadata.vars = NULL, x.values = NULL, by.index = FALSE)

Arguments

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.

Value

Returns a data.frame with the data and metadata from the dataset merged.

Examples

1
2
3
4
  ## Example of merging data and metadata
  library(specmine.datasets)
  data(cachexia)
  dt.merged = merge_data_metadata(cachexia)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.