rOpenGov / eurostat

R tools for Eurostat data
http://ropengov.github.io/eurostat
Other
235 stars 46 forks source link

merge_eurostat_geodata #146

Closed jessicaRjes closed 4 years ago

jessicaRjes commented 5 years ago

Hi,

i installed the actual eurostat release via install.packages("eurostat") and library(devtools) install_github("ropengov/eurostat") after calling merge_eurostat_geodata i get the error message: _Error in merge_eurostat_geodata(data = tgs_es, geocolumn = "geo", resolution = "1", : could not find function "merge_eurostatgeodata"

Is the function not available anymore? What is the alternative for this function?

Thanks in advance!

antagomir commented 5 years ago

Some material was moved to ropengov/eurostat_geodata earlier. It seems we removed this; the idea has been to provide a more throroughly thought package to support eurostat map visualizations & geospatial aspects. We'll have a meeting next Tuesday and will have a look. @muuankarski may have additional tips meanwhile.

jessicaRjes commented 5 years ago

Thanks Antagomir. How was the meeting? Could you have a look? Again: What is the alternative for this function?

ketevani commented 5 years ago

I have the same problem with "merge_eurostat_geodata" command. Have you solved it?

antagomir commented 5 years ago

Hi - there are new geospatial visualization examples in the tutorial and in a blog post Do these help?

muuankarski commented 5 years ago

merge_eurostat_geodata() was hidden back in spring 2018 https://github.com/rOpenGov/eurostat/commit/463cf8ab651c5ac0946bccd6cb181bdca964411e as we migrated into sf-class. You can join data.frames (or tbl_df) with sf using dplyr::*_join()-functions

davidkleman commented 4 years ago

Some simple example of the replacement join intended for merge_eurostat_geodata() would be much appreciated. The cheatsheet on RStudio's website still uses this function. E.g. the fertility example there could be replicated using join.

antagomir commented 4 years ago

Since we are not currently supporting merge_eurostat_geodata(), after switching to sf class, I would instead propose that we remove this function from cheat sheet, and possibly create alternative examples (suggestions welcome). Any comments?

muuankarski commented 4 years ago

We have also updated the cheat sheet at RStudio while ago: https://github.com/rstudio/cheatsheets/raw/master/eurostat.pdf