GoreLab / waves

R package for Vis-NIR spectral analysis
https://gorelab.github.io/waves/
Other
6 stars 6 forks source link

predict_spectra error "arguments imply differing number of rows" even with example data #25

Closed jmh579 closed 11 months ago

jmh579 commented 11 months ago

Example code provided with function causes error:

Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 175, 0

Bug identified: updated save_model() output file column names changed but the predict_spectra() function was not updated accordingly. Change column name for best number of components from "best.ncomp" to "best.ncomp_mode."