colcenter: Center a matrix column-wise

View source: R/matrix-ops.R

colcenterR Documentation

Center a matrix column-wise

Description

Center a matrix column-wise

Usage

colcenter(m, by = "mean")

Arguments

m

a matrix or Matrix

by

either "mean", "median" or a numeric vector of length equal to the number of columns of ‘m’. Default: "mean"

Value

column-centered matrix


jlaffy/scalop documentation built on March 24, 2024, 9 a.m.