View source: R/helpFunctions.R
centerX | R Documentation |
Given a design matrix and a cluster identification variable. A new design matrix is returned, where each column is centered around its cluster mean. Using C++ code for speed.
centerX(x, id)
x |
A design matrix |
id |
A cluster identifying variable. |
centerX
is written as a help function with the aim of being fast.
A matrix with cluster centered columns.
Johan Zetterqvist, Arvid Sjolander
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.