08.04.2015 Views

The ade4 Package - NexTag Supports Open Source Initiatives

The ade4 Package - NexTag Supports Open Source Initiatives

The ade4 Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

scalewt 255<br />

scalewt<br />

Centring and Scaling a Matrix of Any Weighting<br />

Description<br />

transforms a numeric matrix in a centred and scaled matrix for any weighting.<br />

Usage<br />

scalewt(X, wt = rep(1, nrow(X)), center = TRUE, scale = TRUE)<br />

Arguments<br />

X<br />

wt<br />

center<br />

scale<br />

a numeric matrix (like object)<br />

a vector of weighting<br />

a logical value indicating whether the array should be centred<br />

a logical value indicating whether the array should be scaled<br />

Value<br />

returns a centred, scaled matrix<br />

Note<br />

<strong>The</strong> norms are calculated with 1/n and the columns of null variance are still equal to zero.<br />

Author(s)<br />

Daniel Chessel<br />

Examples<br />

scalewt(matrix(1:12,4,3))<br />

scale((matrix(1:12,4,3)))<br />

scale(matrix(1,4,3))<br />

scalewt(matrix(1,4,3))

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!