transform_data: Transform data

Description Usage Arguments Value Examples

Description

Performs data transformation according to a method.

Usage

1
transform_data(dataset, method = "log")

Arguments

dataset

list representing the dataset from a metabolomics experiment.

method

string specifying the transformation method. The possible values are:

  • "log" logarithmic transformation.

  • "cubicroot" cubic root transformation.

Value

Returns the dataset with the data transformation applied.

Examples

1
2
3
4
  ## Example of logarithmic transformation
  library(specmine.datasets)
  data(cachexia)
  dataset.log = transform_data(cachexia, "log")

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