center_colmeans: center a variable

Description Usage Arguments Value

View source: R/utils.R

Description

faster than using scale() as per https://www.gastonsanchez.com/visually-enforced/how-to/2014/01/15/Center-data-in-R/

Usage

1

Arguments

x

a matrix, or an object that can coerced to a matrix (vector)

Value

the centered object


pinusm/Mmisc documentation built on June 5, 2021, 7:59 a.m.