rowcenter: Center a matrix row-wise

View source: R/matrix-ops.R

rowcenterR Documentation

Center a matrix row-wise

Description

Center a matrix row-wise

Usage

rowcenter(m, by = "mean")

Arguments

m

a matrix or Matrix

by

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

Value

row-centered matrix


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