knitr::opts_chunk$set(echo = TRUE) library(dplyr, warn.conflicts = FALSE) esdata13 <- loadesdata( file.path( Sys.getenv("HOME"), "ce_combinednomenclature_unlogged_2013.csv.gz")) esdata14 <- loadesdata( file.path( Sys.getenv("HOME"), "ce_combinednomenclature_unlogged_2014.csv.gz"))
esdata14 %>% select(hs) %>% distinct() %>% anti_join(esdata13 %>% select(hs) %>% distinct(), by = c("hs")) %>% distinct() %>% arrange(hs) es14newhs %>% group_by(reporter) %>% summarize(n = n()) %>% arrange(desc(n)) write.csv(es14newhs %>% select(reporter, flow, hs) %>% arrange(reporter, flow, hs), file = file.path(Sys.getenv("HOME"), "eurostat14newhs.csv"), row.names = FALSE, quote = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.