R/centerX.R

Defines functions `centerX`

`centerX` <- function(x,w)
{
  apply(x,2,function(z) z-weighted.mean(z,w))
}

Try the homals package in your browser

Any scripts or data that you put into this service are public.

homals documentation built on June 10, 2022, 5:09 p.m.