Description Usage Arguments Value Examples
Center a variable by subtracting the mean from each element. Centering can
be performed by the grand mean when by = NULL
(the default), or by
group means when by
is a factor variable.
1 | center_variable(variable, scale = FALSE, by = NULL)
|
variable |
A numeric vector. |
scale |
A logical vector. If |
by |
A vector with the |
A numeric vector.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.