bicenter {ProcMod} | R Documentation |
colSums and rowSums of the returned matrix are all equal to zero.
bicenter(m)
m |
a |
Inspired from the algorithm described in stackoverflow https://stackoverflow.com/questions/43639063/double-centering-in-r
a numeric
matrix centred by rows
and columns
Eric Coissac
Christelle Gonindard-Melodelima
data(bacteria)
bact_bc <- bicenter(bacteria)
sum(rowSums(bact_bc))
sum(colSums(bact_bc))