center | R Documentation |
Simple centering helper
center(x, na.rm = TRUE)
x |
Numeric variable. |
na.rm |
Remove missing values (default TRUE)? |
Numeric variable centered around its mean.
center(c(1, 2, 3, 5, 3, 2), na.rm = TRUE) center(c(1, NA, NA, 5, 3, 2), na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.