Description Usage Arguments Details Value Author(s) See Also Examples
Standardize each column of a data matrix and return the
results as an object of class coords
.
1 | standardize(x, compute.scores = TRUE)
|
x |
A data matrix, rows are observations, columns are variables. |
compute.scores |
Whether to compute the scores (i.e. |
This function standardizes the columns of x
by subtracting the
mean of each column and then dividing by the standard deviation. The
transformed data is stored in the $y
field of the returned
coords
object.
If compute.scores
is set to FALSE
, only the information
required for the toCoords()
and fromCoords()
to work is
stored in the returned coords
object; otherwise the scores
(transformed data) will be stored in the $y
field of the
coords
object.
An object of class coords
, with the following additional
components added:
y |
if |
Jochen Voss <voss@seehuhn.de>
coords
;
alternative implementation scale
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.