unscale is a generic function that unscale and/or uncenter the columns
of a matrix generated by the scale base function
A numeric matrix.
unscale uses attributes added by the scale function "scaled:scale" and
"scaled:center" and use these scaling factor to retrieve the initial matrix.
It first unscales and then uncenters.
Return a matrix, uncenterd and unscaled. Attributes "scaled:center" and "scaled:scale" are removed.
X <- matrix(1:9, ncol = 3) X.scale <- scale(X, center = TRUE, scale = TRUE) X.unscale <- unscale(X.scale) all(X == X.unscale)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.