Description Usage Arguments Examples
Returns centered data
1 | center_data(data, weights = NULL)
|
data |
a numeric vector, matrix or data.frame |
weights |
optional vector of weights |
1 2 3 4 5 6 7 8 9 | # center vector
center_data(1:10)
# center matrix
m = matrix(1:9, 3, 3)
center_data(m)
# center data frame
center_data(iris[1:5,1:4])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.