ezScaleColumns: Scales columns of a matrix

View source: R/util.R

ezScaleColumnsR Documentation

Scales columns of a matrix

Description

The columns will be scaled by multiplying them with the scaling.

Usage

ezScaleColumns(x, scaling)

Arguments

x

the matrix to scale.

scaling

a vector containing the scale for each column of x.

Value

Returns a matrix with scaled columns.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

x = ezScaleColumns(matrix(1:20, 5), 1:4)

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.