I can’t seem to produce a Spectra object.
The file I am using look like this:
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?
Your error says it cannot find the function
matrix2SpectraObject
, which suggests you have not yet calledlibrary(ChemoSpec)
before running your code. Alternatively, tryChemoSpec::matrix2SpectraObject