# Normalize each column of x to have mean 0 and standard deviation 1.
standardNormalization = function(x) {
x = as.matrix(x);
mean = apply(x, 2, mean)
sd = apply(x, 2, sd)
sd[sd==0] = 1
xNorm = t((t(x) - mean) / sd)
return(xNorm)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.