You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Line 80 of plantR::checkInverted, in cases where check_these <- check1$tmp.country.gazet == check1$NAME_0 is equal to a vector of NA, the following condition if (any(check_these)) returns NA when a TRUE/FALSE is expected, resulting in:
any(check_these)
[1] NA
Error in if (any(check_these)) { : valor ausente onde TRUE/FALSE necessário
and stopping the next steps. Maybe an if(any(check_these, na.rm = TRUE)) suffices for these cases?
any(check_these, na.rm = TRUE)
[1] FALSE
The text was updated successfully, but these errors were encountered:
In Line 80 of
plantR::checkInverted
, in cases wherecheck_these <- check1$tmp.country.gazet == check1$NAME_0
is equal to a vector ofNA
, the following conditionif (any(check_these))
returnsNA
when a TRUE/FALSE is expected, resulting in:Error in if (any(check_these)) { : valor ausente onde TRUE/FALSE necessário
and stopping the next steps. Maybe an
if(any(check_these, na.rm = TRUE))
suffices for these cases?The text was updated successfully, but these errors were encountered: