grand_center | R Documentation |
Grand mean centering of one or more variables
grand_center(variables, data, prefix = "gc.", std = F)
variables |
Character vector of variables names |
data |
Data frame |
prefix |
Character, added to the befinning of centered variable name. |
std |
Logical. Should the variable be standardized (divided by its std. deviation)? |
Returns an original data frame binded with the new centered variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.