Diff of /man/unscale.Rd [000000] .. [d79ff0]

Switch to unified view

a b/man/unscale.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/unscale.R
3
\name{unscale}
4
\alias{unscale}
5
\title{Unscales a scaled data.frame}
6
\usage{
7
unscale(x)
8
}
9
\arguments{
10
\item{x}{A numeric matrix.}
11
}
12
\value{
13
Return a matrix, uncenterd and unscaled. Attributes "scaled:center" and
14
"scaled:scale" are removed.
15
}
16
\description{
17
\code{unscale} is a generic function that unscale and/or uncenter the columns
18
of a matrix generated by the scale base function
19
}
20
\details{
21
\code{unscale} uses attributes added by the scale function "scaled:scale" and
22
"scaled:center" and use these scaling factor to retrieve the initial matrix.
23
It first unscales and then uncenters.
24
}
25
\examples{
26
X <- matrix(1:9, ncol = 3)
27
X.scale <- scale(X, center = TRUE, scale = TRUE)
28
X.unscale <- unscale(X.scale)
29
all(X == X.unscale)
30
31
}
32
\seealso{
33
\code{\link[base]{scale}}
34
}