• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-cqtcocoa誰得pythonphprubygameguibathyscaphec翻訳計画中(planning stage)omegatframeworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

Revisión9eca22cd1b5f73c70433a4e30dbfbbc613a1260d (tree)
Tiempo2022-11-18 20:04:43
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I fixed the rules for the covid cases and the nominall values.

Cambiar Resumen

Diferencia incremental

diff -r e3101494ad74 -r 9eca22cd1b5f R-codes/clean_spanish_tam.R
--- a/R-codes/clean_spanish_tam.R Thu Nov 17 13:19:18 2022 +0100
+++ b/R-codes/clean_spanish_tam.R Fri Nov 18 12:04:43 2022 +0100
@@ -57,7 +57,9 @@
5757 mutate(across(contains("date"), ~dmy(.x)))|>
5858 mutate(nominal_value_extended_eur=nominal_aid_absolute_eur,
5959 granted_value_extended_eur=granted_aid_absolute_eur,
60- is_covid_case=if_else(case_reference %in% covid$case_reference, "Yes", "No"))
60+ is_covid_case=if_else(case_reference %in% covid$case_reference, "Yes", "No"))|>
61+ mutate(granted_value_extended_eur=if_else(is_covid_case=="No", granted_value_extended_eur, NA_real_))
62+
6163
6264
6365
diff -r e3101494ad74 -r 9eca22cd1b5f R-codes/process_tam_RO.R
--- a/R-codes/process_tam_RO.R Thu Nov 17 13:19:18 2022 +0100
+++ b/R-codes/process_tam_RO.R Fri Nov 18 12:04:43 2022 +0100
@@ -148,7 +148,8 @@
148148 mutate(beneficiary_country="Romania") |>
149149 mutate(nominal_value_extended_eur=nominal_aid_absolute_eur,
150150 granted_value_extended_eur=granted_aid_absolute_eur,
151- is_covid_case=if_else(case_reference %in% covid$case_reference, "Yes", "No"))
151+ is_covid_case=if_else(case_reference %in% covid$case_reference, "Yes", "No")) |>
152+ mutate(granted_value_extended_eur=if_else(is_covid_case=="No", granted_value_extended_eur, NA_real_))
152153
153154
154155
diff -r e3101494ad74 -r 9eca22cd1b5f R-codes/read_polish_tam_new.R
--- a/R-codes/read_polish_tam_new.R Thu Nov 17 13:19:18 2022 +0100
+++ b/R-codes/read_polish_tam_new.R Fri Nov 18 12:04:43 2022 +0100
@@ -89,7 +89,10 @@
8989 is_covid_case=if_else(case_reference %in% covid$case_reference, "Yes", "No")) |>
9090 mutate(main_procedure_type_code=as.character(main_procedure_type_code)) |>
9191 mutate(national_identification=as.character(national_identification),
92- beneficiary_type=as.character(beneficiary_type))
92+ beneficiary_type=as.character(beneficiary_type))|>
93+ mutate(granted_value_extended_eur=if_else(is_covid_case=="No", granted_value_extended_eur, NA_real_))
94+
95+
9396
9497
9598