• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisione9de0a7c981397f5b585ea06e830c7b6b7ddcb88 (tree)
Time2022-06-24 18:37:34
AuthorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

Minor modifications to the code to fix some parts not working with the latest scoreboard.

Change Summary

Incremental Difference

diff -r 4892d4a648e6 -r e9de0a7c9813 R-codes/table_scoreboard.R
--- a/R-codes/table_scoreboard.R Fri Jun 24 11:00:36 2022 +0200
+++ b/R-codes/table_scoreboard.R Fri Jun 24 11:37:34 2022 +0200
@@ -1,6 +1,6 @@
11 rm(list=ls())
22
3-## last saved on Time-stamp: "2022-06-07 12:05:46 lorenzo"
3+## last saved on Time-stamp: "2022-06-24 11:34:15 lorenzo"
44
55
66 library(tidyverse)
@@ -31,7 +31,7 @@
3131 "IT" , "LT","LU", "LV", "MT", "NL", "PL",
3232 "PT", "RO", "SK", "SI", "SE"),
3333
34-country=c("Austria", "Belgium", "Bulgaria", "Cyprus", "Czech Republic", "Germany",
34+country=c("Austria", "Belgium", "Bulgaria", "Cyprus", "Czechia", "Germany",
3535 "Denmark", "Spain", "Estonia", "Finland", "France", "Greece",
3636 "Croatia", "Hungary", "Ireland","Italy", "Lithuania", "Luxembourg",
3737 "Latvia", "Malta", "Netherlands", "Poland", "Portugal",
@@ -56,13 +56,14 @@
5656 select(scoreboard_objective,case_no,
5757 amount_spent_aid_element_in_eur_million,
5858 member_state, working_title ) %>%
59- left_join(y=iso_map_uk, by=c("member_state"="iso3")) %>%
59+ left_join(y=iso_map_uk, by=c("member_state"="country")) %>%
6060 filter(amount_spent_aid_element_in_eur_million>0) %>%
6161 group_by(scoreboard_objective,case_no,
6262 member_state,
6363 working_title,
64- iso2,
65- country) %>%
64+ iso2## ,
65+ ## country
66+ ) %>%
6667 summarise(amount_spent_aid_element_in_eur_million=
6768 sum(amount_spent_aid_element_in_eur_million,na.rm=T)) %>%
6869 ungroup %>%