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

fix regex to match any numeric or infinity value in interval notation #27

Closed chacalle closed 4 years ago

chacalle commented 4 years ago

Addresses #26. @krpaulson27 you were right that it was an issue in how I was identifying numeric values, worked for integers but not other stuff.

chacalle commented 4 years ago

You are still going to get this error which is hopefully more informative

 Error: empty_missing_dt : Some nodes in `mapping` cannot be scaled because input data is missing in `dt`.
* See `missing_dt_severity` argument if it is okay to only scale nodes that are possible given available data.
* See `?identify_scale_dt_issues()` to return missing data printed below.
   location_id sex_id year_id draw  age_start age_end        issue
1:           7      1       1    0 0.07671233       5 missing data
[1] FALSE 
krpaulson commented 4 years ago

Why should I be getting that missing report when I didn't request 0.076-5 in the mapping arg?