Revision | b275397f4b8e2767da49c7cd80ee0acb295f7515 (tree) |
---|---|
Time | 2020-08-03 20:18:14 |
Author | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
I now work with the data with outlier correction.
@@ -120,7 +120,7 @@ | ||
120 | 120 | |
121 | 121 | df_out1 <- df %>% |
122 | 122 | filter(reporterid %in% df_eu27$iso2, partnerid=="Extra-EU28", |
123 | - productid=="all_products" , tag %in% c("common", "raw") ) %>% | |
123 | + productid=="all_products" , tag %in% c("common", "clean") ) %>% | |
124 | 124 | group_by(reporterid, year) %>% |
125 | 125 | summarise(total_imports=sum(iv)) %>% |
126 | 126 | ungroup %>% |
@@ -243,7 +243,7 @@ | ||
243 | 243 | |
244 | 244 | |
245 | 245 | df_out2 <- df %>% |
246 | - filter(reporterid=="EU27", productid=="27", tag %in% c("common", "raw")) %>% | |
246 | + filter(reporterid=="EU27", productid=="27", tag %in% c("common", "clean")) %>% | |
247 | 247 | group_by(year, partnerid) %>% |
248 | 248 | summarise(imports_27=sum(iv)) %>% |
249 | 249 | ungroup %>% |
@@ -386,7 +386,7 @@ | ||
386 | 386 | |
387 | 387 | |
388 | 388 | df_out3 <- df %>% |
389 | - filter(reporterid=="EU27", partnerid=="CN", tag %in% c("common", "raw")) %>% | |
389 | + filter(reporterid=="EU27", partnerid=="CN", tag %in% c("common", "clean")) %>% | |
390 | 390 | group_by(year, productid) %>% |
391 | 391 | summarise(imports_eu27=sum(iv, na.rm=T)) %>% |
392 | 392 | ungroup %>% |
@@ -524,7 +524,7 @@ | ||
524 | 524 | |
525 | 525 | |
526 | 526 | df_out4 <- df %>% |
527 | - filter(reporterid=="EU27", productid=="all_products", tag %in% c("common", "raw")) %>% | |
527 | + filter(reporterid=="EU27", productid=="all_products", tag %in% c("common", "clean")) %>% | |
528 | 528 | group_by(year, partnerid) %>% |
529 | 529 | summarise(imports_27=sum(iv)) %>% |
530 | 530 | ungroup %>% |
@@ -740,7 +740,8 @@ | ||
740 | 740 | |
741 | 741 | |
742 | 742 | p1 <- df %>% |
743 | - filter(reporterid=="EU27", partnerid=="Extra-EU28", tag %in% c("common", "raw"), productid=="all_products") %>% | |
743 | + filter(reporterid=="EU27", partnerid=="Extra-EU28", tag %in% c("common", | |
744 | + "clean"), productid=="all_products") %>% | |
744 | 745 | mutate(year=as.factor(year)) |
745 | 746 | |
746 | 747 |
@@ -817,7 +818,7 @@ | ||
817 | 818 | |
818 | 819 | |
819 | 820 | p2 <- df %>% |
820 | - filter(reporterid=="EU27", partnerid=="CN", tag %in% c("common", "raw"), productid=="all_products") %>% | |
821 | + filter(reporterid=="EU27", partnerid=="CN", tag %in% c("common", "clean"), productid=="all_products") %>% | |
821 | 822 | mutate(year=as.factor(year)) |
822 | 823 | |
823 | 824 |
@@ -884,7 +885,7 @@ | ||
884 | 885 | |
885 | 886 | |
886 | 887 | p3 <- df %>% |
887 | - filter(reporterid=="EU27", partnerid=="US", tag %in% c("common", "raw"), productid=="all_products") %>% | |
888 | + filter(reporterid=="EU27", partnerid=="US", tag %in% c("common", "clean"), productid=="all_products") %>% | |
888 | 889 | mutate(year=as.factor(year)) |
889 | 890 | |
890 | 891 |
@@ -952,7 +953,7 @@ | ||
952 | 953 | |
953 | 954 | |
954 | 955 | p4 <- df %>% |
955 | - filter(reporterid=="EU27", partnerid=="CH", tag %in% c("common", "raw"), productid=="all_products") %>% | |
956 | + filter(reporterid=="EU27", partnerid=="CH", tag %in% c("common", "clean"), productid=="all_products") %>% | |
956 | 957 | mutate(year=as.factor(year)) |
957 | 958 | |
958 | 959 |
@@ -1017,7 +1018,7 @@ | ||
1017 | 1018 | |
1018 | 1019 | |
1019 | 1020 | p5 <- df %>% |
1020 | - filter(reporterid=="EU27", partnerid=="RU", tag %in% c("common", "raw"), productid=="all_products") %>% | |
1021 | + filter(reporterid=="EU27", partnerid=="RU", tag %in% c("common", "clean"), productid=="all_products") %>% | |
1021 | 1022 | mutate(year=as.factor(year)) |
1022 | 1023 | |
1023 | 1024 |