rOpenGov/eurostat — pull request #4 by jhuovari (2014-08-04 12:59:58+00:00)
Title: First version of getEurostatRCV with tidyr

Rewrote getEurostatRCV with tidyr

I tried a new tidyr package for getEurostatRCV and replaced the previously used melt from
reshape package. The speed improved is sizable. With “avia_goincc” data the system.time() gives
with reshape:
user system elapsed
59.52 10.15 70.41

with tidyr:
user system elapsed
0.05 0.00 0.05

Improved is probably due to dplyr that tidyr uses. Could be used also to getEurostatRaw?

The data.frame that the modified function returns is bit different from previous version. Variable columns
no longer have (row)names. It think that was duplication of information and output of str() from
that data.frame was confusing and hard to read.

Ideas:
getEurostatRCV is long and hard to remember. Better get_eurostat and make getEurostatRaw internal?
or only eurostat and remove existing eurostat-function? is stat fin version really needed?

If you accept the idea on using tidyr, mayby you should anyway merge it to some development branch, as modification will change the return value and is not tested that much.