Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data for 2014 available #1

Open
xfim opened this issue May 22, 2016 · 7 comments
Open

Data for 2014 available #1

xfim opened this issue May 22, 2016 · 7 comments

Comments

@xfim
Copy link

xfim commented May 22, 2016

A recent update of the data of HDI is available. Would it be possible to include data for 2014 in the package?

Thank you,

@expersso
Copy link
Owner

Thanks for filing this issue. However, it appears that 2014 data is not in the API. E.g.:

http://ec2-52-1-168-42.compute-1.amazonaws.com/version/1/indicator_id/137506/country_code/DEU/year/2014

returns

"No data was found for the request version/1/indicator_id/137506/country_code/DEU/year/2014".

Indeed, no 2014 data is available (warning, big file):

http://ec2-52-1-168-42.compute-1.amazonaws.com/version/1

Investigating this further, it appears that the UNDP HDR is no longer supporting the API:

http://hdr.undp.org/en/data/api # returns 404 error

I will contact the UNDP to see if they can clarify the issue further.

@xfim
Copy link
Author

xfim commented May 22, 2016

EP vas escriure el dia dg, 22 mai 2016:

I will contact the UNDP to see if they can clarify the issue further.

Perfect. Thank you. Please, keep it posted here.

  • Xavier -

@xfim
Copy link
Author

xfim commented Jun 23, 2016

Dear @expersso , any news regarding the contact with UNDP about the API?

@expersso
Copy link
Owner

I'm afraid not. I wrote them directly after you filed the issue, even inviting them to respond here directly. However, I never received any answer, and it appears that the API is long gone. So I'm contemplating simply deprecating this package. If you have any alternative suggestions, I'd be happy to consider them.

@xfim
Copy link
Author

xfim commented Jun 24, 2016

I think that having a package that facilitates your life for getting the HDI indicators is a "must have" in R. I really believe there is value in it.

However, if the API is gone, maybe you can consider another alternative to provide the same result: download the data on-the-fly and present it in R.

The psData package, for instance, does this with data of the Polity IV project and I think it would be a good alternative: https://cran.r-project.org/web/packages/psData/README.html

@expersso
Copy link
Owner

I looked into this a bit, and there appears to be three avenues forward:

  1. Use Selenium to essentially scrape , i.e. specify one series, download that CSV, parse it and load into R.
  2. Try to get the data out of Google Public Data. I'm not sure if there is an R package that interfaces with that already.
  3. Wait for the UN Data API to add UNDP to its Organizations.

None of these alternatives is very attractive though.

@xfim
Copy link
Author

xfim commented Jul 18, 2016

I don't know much about 1. 3 means that you have to rely on someone else and wait.
So right now I would do 2, as https://github.com/gvegayon/googlePublicData is a package that allows to use Google Public Data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants