Learn R Programming

specmine (version 2.0.3)

scaling: Scale dataset

Description

Performs scaling according to a method.

Usage

scaling(dataset, method = "auto")

Arguments

dataset

list representing the dataset from a metabolomics experiment.

method

string specifying the scaling method. The possible values are:

  • "auto" auto scaling.

  • "range" range scaling.

  • "pareto" pareto scaling.

  • "tointerval" scaling to an interval.

Value

Returns the dataset scaled.

Examples

Run this code
# NOT RUN {
  ## Example of auto scaling
  data(cassavaPPD)
  cassava.scal = scaling(cassavaPPD, "auto")
# }

Run the code above in your browser using DataLab