powered by
colSums and rowSums of the returned matrix are all equal to zero.
bicenter(m)
a numeric matrix
numeric
a numeric matrix centred by rows and columns
Inspired from the algorithm described in stackoverflow https://stackoverflow.com/questions/43639063/double-centering-in-r
# NOT RUN { data(bacteria) bact_bc <- bicenter(bacteria) sum(rowSums(bact_bc)) sum(colSums(bact_bc)) # }
Run the code above in your browser using DataLab