mrc-ide / leapfrog

Multistate population projection model for demographic estimation.
Other
2 stars 5 forks source link

fix child ART percent flag #54

Open jeffeaton opened 4 months ago

jeffeaton commented 4 months ago

In function dp_read_childart(), error in code to convert 'is percentage' 0/1 values to logical. They were being read as strings ("0" or "1") which as.logical() was converting to NA.

Coerce them to numeric, then check ==1 to convert to logical.