matScale: Scale rows (columns) of a matrix

View source: R/data_functions.R

matScaleR Documentation

Scale rows (columns) of a matrix

Description

Apply FUN ('scale' by default) to the rows or columns of a numeric matrix.

Usage

matScale(data, rows = FALSE, cols = FALSE, FUN = scale, ...)

Arguments

data

Matrix or data.frame

rows

Scale rows (TRUE/FALSE)

cols

Scale columns (TRUE/FALSE)

FUN

Function used for scaling

...

Examples

matScale(rmat(5, 5), rows = TRUE)

AlexanderKirchmair/datamisc documentation built on June 13, 2025, 5:26 a.m.