Learn R Programming

specmine (version 3.1.6)

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
# NOT RUN {
  ## Example of logarithmic transformation
  library(specmine.datasets)
  data(cachexia)
  dataset.log = transform_data(cachexia, "log")

# }

Run the code above in your browser using DataLab