Description Usage Arguments Value Examples
Currently implemented for numeric vectors, numeric matrices and data.frame standardization.
1 | standardize(x, margin = 1L)
|
x |
numeric, matrix or dataframe input vector. |
margin |
1 - standardize by rows and 2 - standardize by columns. Default is 1. |
A standardize numeric or data.frame.
1 2 3 4 5 6 7 8 9 10 | df <- data.frame("V1" = 1:3, "V2" = 3:5, "V3" = 5:7)
standardize(df, margin = 1L)
standardize(df, margin = 2L)
m <- matrix(c(1,2,3,3,4,5,5,6,7), ncol = 3, byrow = FALSE)
standardize(m, margin = 1L)
standardize(m, margin = 2L)
v <- c(1, 3, 5)
standardize(v)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.