worldbank / povcalnetR

R client to the Povcalnet API
https://worldbank.github.io/povcalnetR
Other
9 stars 5 forks source link

povcalnet_wb() reports data apparently unavailable in web interface. #29

Closed ryancbriggs closed 4 years ago

ryancbriggs commented 4 years ago

The following lines of code will report a row with data for region SAS in 2015 but NAs for 2018.

library(povcalnetR)
regions <- povcalnet_wb()
regions <- regions[regions$regioncode == "SAS",]
regions[regions$year == 2015,]
regions[regions$year == 2018,]

The PovcalNet web interface, however, suppresses the results for both years as coverage in 2015 and 2018 in SAS is too low.

This inconsistency seems weird.

Ryan

tonyfujs commented 4 years ago

Thanks for your patience, and for reporting this @ryancbriggs

This is a known issue, and will be addressed in an upcoming release of PovcalNet.

Closing this issue as the problem comes from the underlying PovcalNet API, not from the povcalnetR package.