PredictiveEcology / Biomass_speciesParameters

Other
1 stars 4 forks source link

Deal with NULL `GC$NonLinearModel` #42

Closed CeresBarros closed 3 months ago

CeresBarros commented 3 months ago

Checking for class error is not sufficient in cases where is.null(GC$NonLinearModel) -- I believe these come from lack of data, but perhaps need to dig further

In my fix, I check for is.null(GC$NonLinearModel) and also print a message differently when this is the case to avoid printing the full GC object