ihmeuw-demographics / hierarchyUtils

Demographics Related Utility Functions
https://ihmeuw-demographics.github.io/hierarchyUtils/
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Documentation: more informative error for misformmated intervals #59

Open chacalle opened 3 years ago

chacalle commented 3 years ago

Describe what needs better documentation Error message for misformatted intervals should be clearer and give hints about how to fix. Also potentially link to the getting started vignette documentation once improved.

Is your documentation request related to a problem? Please describe.

A new user tried aggregating age groups that were in demographic interval notation, this led to a non-informative error

Aggregating age
Error: `ints_dt` must a 2-column data.table with the first column representing the start of the interval and the second column the end of each interval

image