• 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

Revisión7fab32ec9541a76d0b2a9eee4ae82c49cdbac8a8 (tree)
Tiempo2024-09-18 02:52:57
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I improved the script and the handling of the output files.

Cambiar Resumen

Diferencia incremental

diff -r d37a35517582 -r 7fab32ec9541 R-codes/process_slovenia.R
--- a/R-codes/process_slovenia.R Tue Sep 17 19:50:04 2024 +0200
+++ b/R-codes/process_slovenia.R Tue Sep 17 19:52:57 2024 +0200
@@ -11,13 +11,13 @@
1111
1212
1313
14-df1_ini <- read_csv("SI1.csv",col_types=cols(`Dejavnost SKD 2. nivo ID`="c") ) |>
14+df1_ini <- read_csv("../input/SI1.csv",col_types=cols(`Dejavnost SKD 2. nivo ID`="c") ) |>
1515 clean_names()
1616
17-df2_ini <- read_csv("SI2.csv") |>
17+df2_ini <- read_csv("../input/SI2.csv") |>
1818 clean_names()
1919
20-df3_ini <- read_csv("SI3.csv") |>
20+df3_ini <- read_csv("../input/SI3.csv") |>
2121 clean_names() |>
2222 mutate(datum_odobritve=excel_numeric_to_date(datum_odobritve))
2323
@@ -205,9 +205,13 @@
205205 ## filter(member_state_2_letter_code=="SI")
206206
207207
208-nace <- readRDS("../nace_codes/df_nace.RDS") |>
208+## nace <- readRDS("../nace_codes/df_nace.RDS") |>
209+## select(-code)
210+
211+nace <- readRDS("../input/df_nace.RDS") |>
209212 select(-code)
210213
214+
211215 df_nace <- tibble(macro=seq_fixed_width(1:99,2),
212216 x=1:99) |>
213217 mutate(macro2=case_when(
@@ -301,11 +305,14 @@
301305 ## mutate(case_reference=str_trim(case_reference, "both"))
302306
303307
304-
305-save_excel(df_tot, "SI_aid.xlsx")
308+remove_file("../output/SI_aid.xlsx")
309+save_excel(df_tot, "../output/SI_aid.xlsx")
310+
311+remove_file("../output/slovenian_tam.parquet")
312+write_parquet(df_tot, "../output/slovenian_tam.parquet")
306313
307314
308-write_parquet(df_tot, "slovenian_tam.parquet")
309-
315+remove_file("../../tam_arrow/input/parquet-files/slovenia/slovenian_tam.parquet")
316+write_parquet(df_tot, "../../tam_arrow/input/parquet-files/slovenia/slovenian_tam.parquet")
310317
311318 print("So far so good")