R/norm.min.max.R

Defines functions norm.min.max

Documented in norm.min.max

# Min max data normalization of spectra file with frequency as a first column and intensity
norm.min.max<-function(spectra){
  for(i in 2:ncol(spectra)){
    spectra[,i]<-(spectra[,i]-min(spectra[,i], na.rm=T))/(max(spectra[,i], na.rm = T)-min(spectra[,i], na.rm=T))
  }
  return(spectra)
}

Try the RamanMP package in your browser

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

RamanMP documentation built on July 9, 2021, 9:07 a.m.