Download OpenSpending datasets as a data.frame object
Closed this issue · 3 comments
fontanon commented
R-project's data.frames are one of best objects for dealing with data that R can provide.
Automating the download of OpenSpending's datasets as dataframes would make easier lots of operations that lists can't.
mihi-tr commented
@fontanon there are two functions openspending.as.data.frame
and openspending.list.to.data.frame
that do list conversions - do you think these are enough? Or would you rather have the functions give out data frames per default?
fontanon commented
Didn't realized of those functions and they work great!
No need to convert to data.frame as by-default behaviour.
Here's an use case: merging two OpenSpending datasets to compare revenues
https://gist.github.com/fontanon/6341178
mihi-tr commented
Great, thanks!