• R/O
  • SSH

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Révisionc8fe60415f6bc4983d0e30c3799a82ba202c0913 (tree)
l'heure2024-12-18 05:24:24
AuteurLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Message de Log

I added some extra sectorial analysis.

Change Summary

Modification

diff -r c146acc4435f -r c8fe60415f6b R-codes/sectorial_analysis_scoreboard.R
--- a/R-codes/sectorial_analysis_scoreboard.R Tue Dec 17 18:26:58 2024 +0100
+++ b/R-codes/sectorial_analysis_scoreboard.R Tue Dec 17 21:24:24 2024 +0100
@@ -432,9 +432,18 @@
432432 df_recent_clean_nace_no_covid_ukr <- df_recent_clean_nace |>
433433 filter(covid==F, ukraine==F)
434434
435+sector_count_raw <- df_recent_clean_nace_no_covid_ukr$all_sec|>tabyl_new()|>arrange(desc(n))
435436
436437 df_sec_temp_no_covid_ukr <- extract_nace_codes(df_recent_clean_nace_no_covid_ukr$all_sec)
437438
439+aid_by_many_sectors <- df_recent_clean_nace_no_covid_ukr |>
440+ mutate(sector=df_sec_temp_no_covid_ukr$sector) |>
441+ group_by(sector) |>
442+ summarise(aid_by_sector=sum(aid_element_eur, na.rm=T)) |>
443+ ungroup() |>
444+ arrange(desc(aid_by_sector)) |>
445+ mutate(share=aid_by_sector/sum(aid_by_sector))
446+
438447
439448 df_sec_no_covid_ukr <- expenditure_combined_sectors(df_sec_temp_no_covid_ukr,
440449 all_nace_sectors, df_recent_clean_nace_no_covid_ukr$expenditure_year, df_recent_clean_nace_no_covid_ukr$aid_element_eur )