matrix2SpectraObject in ChemoSpec

39 Views Asked by At

I can't seem to produce a Spectra object. The file I am using look like this:

enter image description here

Column A: Wavelength All other columns: Individual measurements

FTIR<- read.csv(file="FTIR_20190328_test.csv", header = T)
matrix <- matrix2SpectraObject (gr.crit =c("ID"),
                     gr.cols = c("auto"),
                     freq.unit = "Wavenumber",
                     int.unit = "Absorbance intensity",
                     descrip = "Treatment effects on necromass spectra",
                     in.file = "FTIR_20190328_test.csv",
                     out.file = "necro",)

I am getting error:

Error in matrix2SpectraObject(gr.crit = c("ID"), gr.cols = c("auto"),  : 
  could not find function "matrix2SpectraObject"

Can someone help me get this to work? Thanks.

Described above. I think it has something to do with the ID_ naming?

0

There are 0 best solutions below