c. | R Documentation |
Generic function that centers a vector, matrix or dataframe.
c.(x, center = NULL)
x |
a vector, matrix, or dataframe. |
center |
numeric. Value around which values in |
For each item in x
, subtract value specified by center
.
Jason Grafmiller
scale
, z.
x <- rnorm(100, mean = 10, sd = 5)
x.centered <- c.(x)
x.centered2 <- c.(x, center = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.