Skip to content

moe_sum() causing error w/out any zero MOE values #638

@jay-cutler

Description

@jay-cutler

I've combined the B17001 tables by race to calculate estimates over the years for each racial group of young adults for Michigan, from the 2010-2014 to 2020-2024 5-year ACS estimates. There are no 0-value MOEs in this dataset. When trying to recalculate the MOE values using moe_sum(), I get the following error for every year/race combination in the dataset:

Warning message:
There were 75 warnings in `summarize()`.
The first warning was:
ℹ In argument: `sum_moe = moe_sum(moe, estimate)`.
ℹ In group 1: `race = "American Indian"`, `year = "2014"`.
Caused by warning in `max()`:
! no non-missing arguments to max; returning -Inf
ℹ Run dplyr::last_dplyr_warnings() to see the 74 remaining warnings. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions