Learn R Programming

assist (version 3.1.9)

ident: Scaling a Vector

Description

Perform standarization of vector relative to another.

Usage

ident(x, y = x)

Value

a scaled y.

Arguments

x

a numeric vector, matrix or data frame

y

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

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]))\).