View source: R/nda.R View source: R/normalize.R
normalize | R Documentation |
Min-max normalization for data matrices and data frames
normalize(x,type="all")
x |
A data frame or data matrix. |
type |
The type of normalization. "row" normalization row by row, "col" normalization column by column, and "all" normalization for the entire data frame/matrix (default) |
Returns a normalized data.frame/matrix.
Zsolt T. Kosztyan, University of Pannonia
e-mail: kosztyan.zsolt@gtk.uni-pannon.hu
mtx<-matrix(rnorm(20),5,4)
n_mtx<-normalize(mtx) # Fully normalized matrix
r_mtx<-normalize(mtx,type="row") # Normalize row by row
c_mtx<-normalize(mtx,type="col") # Normalize col by col
print(n_mtx) # Print fully normalized matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.