This function subtracts the value returned by centerFn
for each
unique group
from var
, and returns the modified vector.
1 | groupCenter(var, group, centerFn = mean, ...)
|
var |
A vector of values. |
group |
A group identifier variable containing a unique value for each group. |
centerFn |
A function object used to compute the value to subtract
from each score. It should accept a vector (passed by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.