Function to perform mean-centering or median-centering on a numeric matrix or data frame.
Value
A data frame with the same dimensions as the input, but with columns centered according to the specified method.
Function to perform mean-centering or median-centering on a numeric matrix or data frame.
A data frame with the same dimensions as the input, but with columns centered according to the specified method.