When we check the population bounds on a filtered redist_map we are implicitly assuming that at least one row exists. Need to handle the case where 0 rows are returned.
redist:::ld_ia()
dplyr::filter(ia, FALSE)
#> Error in if (bounds[1] > new_tgt || bounds[3] < new_tgt) { :
#> missing value where TRUE/FALSE needed
When we check the population bounds on a filtered
redist_map
we are implicitly assuming that at least one row exists. Need to handle the case where 0 rows are returned.