Learn R Programming

VBmix (version 0.2.8)

setDomain: setDomain

Description

performs linear rescaling of given data.

Usage

setDomain(dat, span = 10, oldspan = NULL)

Arguments

dat
data to rescale. matrix object, with elements as rows, and variables as columns (i.e. variables are rescaled).
span
new domain to which dat is rescaled. If type is numeric and length = 1: [-span, span] is used for all variables. If type is numeric and length = 2: [span[1], span[2]] is used for all variables. If a list object: [span[[1]]_i, span[[2]]_i] is used for each
oldspan
if NULL, old domains are computed from dat inspection. Otherwise, is structured as span and replaces inspected values for rescaling.

Value

  • scaled data matrix.

Examples

Run this code
temp <- setDomain(irisdata, span=15)

Run the code above in your browser using DataLab