[R] SpectrumBackground

Edmir Silva edmirsilva at live.com
Mon Sep 1 16:25:17 CEST 2014


Hello there ...

Using package Peaks to run the function SNIP on a csv
file with 19 spectrum.

 

While trying to run:

### doing SNIP for every spectra

require(Peaks)

for (i in 1:NROW(Q))

                {

                Q.t[i,]<-Q[i,]-SpectrumBackground(as.numeric(as.vector(Q[i,])))

                print(i)

                }

Got the following error:

Error in .Call("R_SpectrumBackground",
as.vector(y), as.integer(iterations), 

: 

  "R_SpectrumBackground"
not available for .Call() for package "Peaks"

 

Any suggestions on how to correct this ?

 

Thanks for the help,

 

Edmir

Fiber&Polymer Science, NCSU 		 	   		  
	[[alternative HTML version deleted]]



More information about the R-help mailing list