Learn R Programming

specmine (version 3.1.6)

get_data_as_df: Get data as data frame

Description

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

Usage

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

Run this code
# NOT RUN {
  ## Example of getting the data matrix as data frame
  library(specmine.datasets)
  data(cachexia)
  cachexia.dt = get_data_as_df(cachexia)
# }

Run the code above in your browser using DataLab