R/norm.SNV.R

Defines functions norm.SNV

Documented in norm.SNV

#Standard normal variate (SNV) transformation of a spectra with first column frequency data
norm.SNV<-function(spectra){
  for(i in 2:ncol(spectra)){
    spectra[,i]<-(spectra[,i]-mean(spectra[,i], na.rm=T))/sd(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.