Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Region code not correctly returned #23

Open
tonyfujs opened this issue Dec 9, 2019 · 1 comment
Open

Region code not correctly returned #23

tonyfujs opened this issue Dec 9, 2019 · 1 comment
Labels
backlog Not prioritized for the moment

Comments

@tonyfujs
Copy link
Member

tonyfujs commented Dec 9, 2019

When using the option fill_gaps=True, the regions are all returned as "XX."

poverty <- povcalnet(year = 2015, fill_gaps = TRUE)
poverty <- povcalnet(year = 2015)
@tonyfujs tonyfujs added the backlog Not prioritized for the moment label Dec 9, 2019
@tonyfujs
Copy link
Member Author

tonyfujs commented Dec 9, 2019

This is an issue with the underlying Povcalnet API:

http://iresearch.worldbank.org/povcalnet/povcalnetapi.ashx?SurveyYears=2015&Countries=ARM_3,AUT_3&PovertyLine=1.9&display=C&format=csv

http://iresearch.worldbank.org/povcalnet/povcalnetapi.ashx?YearSelected=2015&Countries=ARM_3,AUT_3&PovertyLine=1.9&display=C&format=csv

A function could be added to take care of the region's recoding on the R package side, but the right way to go is to fix it directly at the API level.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backlog Not prioritized for the moment
Projects
None yet
Development

No branches or pull requests

1 participant