reinholdsson / rkolada

Simple R package to access the Kolada API
5 stars 2 forks source link

Organizational Unit level data #2

Open dnspangler opened 7 years ago

dnspangler commented 7 years ago

Hello, snazzy little package you have here, very helpful!

Not so much an issue but a request - I see that Kolada has, for some KPIs, made data available via API at the organizational unit level. As far as I can tell, this package is built to return data att the municipality level - Would it be difficult to add functionality to return results on the ou dimension, ie fetching from http://api.kolada.se/v2/oudata/[...] as well? Would be very handy for a research project we're working on..

I'm no developer and my implementation would probably be sloppy, but if it's something you don't have time to do I can take a stab at it once I wrap my head around the code a bit more. :)

Cheers, Douglas

reinholdsson commented 7 years ago

Hi Douglas!

Thanks for the feedback. I haven't seen that they also have organizational units - interesting! I might have some time next week (after Midsummer weekend) to have a look at it.

You are more than welcome to try to do a pull request as well. My code is also quite sloppy, so don't worry about that :)

dnspangler commented 7 years ago

Hey, I was able to get the data I needed with httr and a little for loop, I don't know if it's at all helpful but you're welcome to have a look ! https://github.com/dnspangler/uu/blob/master/170627_kolada.R