normalize {nda}R Documentation

Min-max normalization

Description

Min-max normalization for data matrices and data frames

Usage

normalize(x,type="all")

Arguments

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)

Value

Returns a normalized data.frame/matrix.

Author(s)

Zsolt T. Kosztyan, University of Pannonia

e-mail: kosztyan.zsolt@gtk.uni-pannon.hu

Examples

  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

[Package nda version 0.1.13 Index]