Learn R Programming

specmine (version 1.0)

transform_data: Transform data

Description

Performs data transformation according to a method.

Usage

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

Run this code

  ## Example of logarithmic transformation
  data(cachexia)
  dataset.log = transform_data(cachexia, "log")

Run the code above in your browser using DataLab