PIFSCstockassessments / ss3diags

R package with advanced diagnostics to evaluate a Stock Synthesis model. Diagnostics include residual analyses, hindcasting and cross-validation techniques, and retrospective analyses.
http://pifscstockassessments.github.io/ss3diags/
2 stars 4 forks source link

fix season warnings #36

Closed MOshima-PIFSC closed 2 years ago

MOshima-PIFSC commented 2 years ago

Fixes addressing issues #35 and #33. NA message changed to "Season must be "default" or an integer value of a season included in the index data (ie 1,2,3,4)." and a check was added to make sure Season is a value between 1 and 4: if(as.integer(Season) < 1 | as.integer(Season) > 4) stop("Season must be an integer between 1 and 4") (line 148).