Skip to content

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

@jmh579

Description

@jmh579

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."

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions