Description Usage Arguments Value
Centers the observations in a matrix by their respective class sample means
1 | center_data(x, y)
|
x |
Matrix or data frame containing the training data. The rows are the sample observations, and the columns are the features. Only complete data are retained. |
y |
vector of class labels for each training observation |
matrix with observations centered by its corresponding class sample mean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.