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 March 5, 2025, 3:41 p.m.