Some hints at how to use eurostatasyl
ipak <- function(pkg){ new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] if (length(new.pkg)) install.packages(new.pkg, dependencies = TRUE) sapply(pkg, require, character.only = TRUE) } packages <- c("ggplot2", "plyr", "reshape2", "RColorBrewer", "scales", "grid") list.of.packages <- c("tidyr", "dplyr", "magrittr", "ggplot2", "eurostat", "gridExtra", "lubridate") ipak(list.of.packages) library(eurostatasyl)
acc_data = load_data_acceptance_file('/Users/suny/r-eurostat-refugees/data/data_acceptance')
This will load 8.6 MB / 45 mio values and look like
str(acc_data)
Have a look at the data itself:
View(acc_data)
to see all Countries of Origin:
unique(acc_data[[1]])
to see all countries of destination / where the application was submitted, or decided:
unique(data[[5]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.