HiDef-Aerial-Surveying / stochLAB

The stochastic collision risk model toolbox
https://hidef-aerial-surveying.github.io/stochLAB/
Other
6 stars 2 forks source link

Column `mean` in `bird_dens_dt` contains NA #21

Open JannisLi opened 2 years ago

JannisLi commented 2 years ago

see error below

Hi, maybe not a common thing but in my birds dense datasets I have some missing values for some species in some month. Would be nice to be able to load the whole dataset with all month included. Is there a way that it runs with NAs? Cheers Jannis

Error in val_df_columns(): ! Parameter inputs can't hold missing values. x Column mean in bird_dens_dt contains NAs. Run rlang::last_error() to see where the error occurred.

grwhumphries commented 2 years ago

Hey Jannis, just set those values to 0 instead of NAs. If it has 0 bird density, the output on the other side will just be a 0 as well. You can then exclude those data from your final presentation