Learn R Programming

assist (version 2.0)

ident: Scaling a Vector

Description

Perform standarization of vector relative to another.

Usage

ident(x, y = x)

Arguments

x
a numeric vector, matrix or data frame
y
an optional numeric vector, matrix or data frame. Default is x.

Value

  • a scaled y.

Details

Scale y based on x component by component. For example, if both are a matrix, $y[,i]=(y[,]-min(x[,i]))/(max(x[,i])-min(x[,i]))$.