USAID-OHA-SI / tameDP

Import and munge data from PEPFAR Target Setting Tools
https://usaid-oha-si.github.io/tameDP/
Other
1 stars 3 forks source link

Extracting PLHIV Data #67

Closed achafetz closed 8 months ago

achafetz commented 8 months ago

@lbaraki - I was testing out tameDP and following along the extracting targets vignette but was having trouble pulling the PLHIV data from the Cascade tab. Just wanted to share the error I was getting and see if it's universal and/or based on changes to the TST? Thanks!

image

https://github.com/USAID-OHA-SI/tameDP/blob/bb01602227ce1f75276c942cc574d925710488e4/R/calculate_inds.R#L19-L27

achafetz commented 8 months ago

A few issues:

  1. The main problem is arising from ln27, where otherdisaggregate is being cleared out and set as NA. When the TST has no OVC data, otherdisaggregate is being created as a logical rather than replacing any text in the character otherdisaggregate column
  2. df_hivstatd is an orphan dataframe. It should just be df.
  3. Reference to PLHIV should be replaced with SUBNAT