r - When importing data into ChemoSpec, I get: Error in `[.data.frame`(temp, , 2) : undefined columns selected -
i'm new r (and kind of programming language in general) , hoping package analyze hplc data. script:
library(chemospec) spec <- files2spectraobject(gr.crit=c("control","ac","fifty"), gr.cols=c("auto"), freq.unit="minutes", int.unit="mau", descrip="hplc test data", fileext=".csv", out.file="hplc test data", debug=true)
and output:
the default behavior of function has changed of july 2016. see ?files2spectraobject. really: please read it!
files2spectraobject checking first file
files2spectraobject import files importing file: ac_3g_l_1_220_trim.csv error in
[.data.frame
(temp, , 2) : undefined columns selected
i've got chemospec pdf , formatted files accordingly 2 columns, no headers, .csv format. suggestions i've missed?
i author of chemospec
-- sorry delay in answering!
you need add sep = ","
files2spectraobject
call. may need set header , possibly decimal marker. way know open 1 of csv files in plain text editor , see looks like. chemospec
allows lot of flexibility in format of csv file, because turns of not instrument manufacturers feel csv means "comma separated values". plus, different countries have different standards decimal marker (and instrument may or may not set reflect typical local standards). detailed in ?files2spectraobject
.
there new version of chemospec
on cran of few days ago.
Comments
Post a Comment