Closed abhidg closed 2 years ago
On https://raw.githubusercontent.com/globaldothealth/monkeypox/main/archives/2022-06-10%2021%3A02%3A21.741210.csv
fails with
Error in `mutate()`: ! Problem while computing `bin_index = age_bins(Age, n)`. ℹ The error occurred in row 20. Caused by error in `if (start_bin <= start_age & start_age <= end_bin) ...`: ! missing value where TRUE/FALSE needed Backtrace: ▆ 1. ├─... %>% mutate(bin_index = age_bins(Age, n)) 2. ├─dplyr::mutate(., bin_index = age_bins(Age, n)) 3. ├─dplyr:::mutate.data.frame(., bin_index = age_bins(Age, n)) 4. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), caller_env = caller_env()) 5. │ ├─base::withCallingHandlers(...) 6. │ └─mask$eval_all_mutate(quo) 7. ├─global age_bins(Age, n) 8. └─base::.handleSimpleError(...) 9. └─dplyr h(simpleError(msg, call)) 10. └─rlang::abort(...) Warning message: Problem while computing `bin_index = age_bins(Age, n)`. ℹ NAs introduced by coercion ℹ The warning occurred in row 20. Execution halted
It looks like there was a row of data where the age and gender entries were in the wrong columns. The age/gender filter has been updated
On https://raw.githubusercontent.com/globaldothealth/monkeypox/main/archives/2022-06-10%2021%3A02%3A21.741210.csv
fails with