centerx <-
function (x)
{
x = as.matrix(x)
n = length(x[, 1])
one = matrix(rep(1, n), ncol = 1)
x - (one %*% t(one)/n) %*% x
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.