R/normalize.R

Defines functions normalize

Documented in normalize

normalize <-
function(ar){
# Normalization into <0,1>
 # ar<-(ar-mean(ar))/sd(ar)
 if (is.numeric(ar)) {ar<-(ar-min(ar))/(max(ar)-min(ar))}
 ar
}

Try the parviol package in your browser

Any scripts or data that you put into this service are public.

parviol documentation built on May 1, 2019, 9:12 p.m.