get_data_as_df: Get data as data frame

Description Usage Arguments Value Examples

Description

Get the data matrix from the dataset as a data frame.

Usage

1
get_data_as_df(dataset)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

Value

Returns the data matrix from the dataset as a data.frame object.

Examples

1
2
3
4
  ## Example of getting the data matrix as data frame
  library(specmine.datasets)
  data(cachexia)
  cachexia.dt = get_data_as_df(cachexia)

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