Giter VIP home page Giter VIP logo

Comments (7)

expersso avatar expersso commented on August 28, 2024

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.

from hdr.

xfim avatar xfim commented on August 28, 2024

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 -

from hdr.

xfim avatar xfim commented on August 28, 2024

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

from hdr.

expersso avatar expersso commented on August 28, 2024

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.

from hdr.

xfim avatar xfim commented on August 28, 2024

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

from hdr.

expersso avatar expersso commented on August 28, 2024

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.

from hdr.

xfim avatar xfim commented on August 28, 2024

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.

from hdr.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.