Learn R Programming

specmine (version 1.0)

scaling_samples: Scale data matrix

Description

Performs scaling according to a method.

Usage

scaling_samples(datamat, method = "auto")

Arguments

datamat
data matrix.
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 data matrix scaled.

Examples

Run this code
  ## Example of auto scaling
  data(cassavaPPD)
  cassava.scal = scaling_samples(cassavaPPD$data, "auto")

Run the code above in your browser using DataLab