tokami / TropFishR

Tropical Fisheries Analysis with R
24 stars 19 forks source link

VBGF add na.rm=F default #32

Closed SimonDedman closed 3 years ago

SimonDedman commented 5 years ago

Dear Tobias,

Do you think it would be possible to add a na.rm parameter to VBGF, defaulting to FALSE like max() does (for example)? This would avoid having to code VBGF calls in an if/else wrapper to deal with NAs when running VBGF on a vector with NAs.

Thanks!

tokami commented 3 years ago

Thank you for the good idea! The na.rm option is implemented in the 'nojags' branch. Please install with remotes::install_github("tokami/TropFishR", ref="nojags").