bicenter: Double centering of a matrix.

Description Usage Arguments Details Value Author(s) Examples

View source: R/multivariate.R

Description

colSums and rowSums of the returned matrix are all equal to zero.

Usage

1

Arguments

m

a numeric matrix

Details

Inspired from the algorithm described in stackoverflow https://stackoverflow.com/questions/43639063/double-centering-in-r

Value

a numeric matrix centred by rows and columns

Author(s)

Eric Coissac

Christelle Gonindard-Melodelima

Examples

1
2
3
4
data(bacteria)
bact_bc <- bicenter(bacteria)
sum(rowSums(bact_bc))
sum(colSums(bact_bc))

ProcMod documentation built on May 12, 2021, 9:08 a.m.

Related to bicenter in ProcMod...