View source: R/NeighborhoodEstimation.R
conditionalCenter | R Documentation |
Center data so that it has conditional column mean zero
conditionalCenter(samp)
samp |
matrix of data |
centered matrix
dat = data.frame(x=c(1:5, 0, 0, 0), y=c(6:10, 0, 0, 0)) conditionalCenter(dat) #compare to scale(dat, scale=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.