ident: Scaling a Vector

View source: R/assist.R

identR Documentation

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.

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

Value

a scaled y.


assist documentation built on Aug. 22, 2023, 9:12 a.m.

Related to ident in assist...