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` |
type of normalizaion. "row" normalization row by row, "col" normalization column by colum, "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
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.