AgroCares / Open-Bodem-Index-Calculator

An R package containing the functions for the Open Bodem Index (OBI)
https://agrocares.github.io/Open-Bodem-Index-Calculator/
GNU General Public License v3.0
11 stars 2 forks source link

ind_nematodes() does not work when supplying vectors of values for only some arguments. #196

Open BrentWHR opened 5 months ago

BrentWHR commented 5 months ago

According to the documentation it is allowed to sent in only one or two vectors of nematode counts. However, this check: https://github.com/AgroCares/Open-Bodem-Index-Calculator/blob/636a586ca645574cd559199788c9d9825481e3ae/R/nematode.R#L175C1-L179C35 fails when, for example only supplying a vector of B_LU_BRP and A_RLN_PR_TOT because the tables of other nematode groups will have length 1, not the same length of these vectors.

I'm not sure such a check is even needed.