CenterLazily: Center rows or columns.

View source: R/MatrixLazyEval_convenience.R

CenterLazilyR Documentation

Center rows or columns.

Description

Center rows or columns.

Usage

CenterLazily(M, do_rows = T)

Arguments

M

Any matrix with a multiplication operator and nrow/ncol methods defined. Usually from the Matrix package.

do_rows

If true, the rows are centered so every row has mean 0. If false, the columns are centered so every column has mean 0.

This method is LAZY – calculations are put off until later, not triggered by calling this function.


ekernf01/MatrixLazyEval documentation built on July 24, 2022, 2:42 a.m.