unscale | R Documentation |
unscale
is a generic function that unscale and/or uncenter the columns
of a matrix generated by the scale base function
unscale(x)
x |
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.
scale
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.