Skip to content

Commit

Permalink
including the sub-folder directory commands for where the harmonised …
Browse files Browse the repository at this point in the history
…datasets will be stored
  • Loading branch information
FlorianSchw committed Dec 18, 2024
1 parent a5617f5 commit 2c51829
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion scripts/GINI_P1.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ fabR::bookdown_open(bookdown_path)
#### Step 9: Extract and save harmonized data into a pre-set folder
harmonized_dataset <- Rmonize::pooled_harmonized_dataset_create(harmonized_dossier)

ifelse(!dir.exists(file.path(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name)))),dir.create(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name))), FALSE)

readr::write_delim(x = harmonized_dataset,
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_harmonized.csv")),
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_", system_name, "/", dataset_name,"_harmonized.csv")),
delim = ",",
na = "")

Expand Down
4 changes: 3 additions & 1 deletion scripts/GINI_P2.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ fabR::bookdown_open(bookdown_path)
#### Step 9: Extract and save harmonized data into a pre-set folder
harmonized_dataset <- Rmonize::pooled_harmonized_dataset_create(harmonized_dossier)

ifelse(!dir.exists(file.path(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name)))),dir.create(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name))), FALSE)

readr::write_delim(x = harmonized_dataset,
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_harmonized.csv")),
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_", system_name, "/", dataset_name,"_harmonized.csv")),
delim = ",",
na = "")
4 changes: 3 additions & 1 deletion scripts/KORA_S1_P1.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ fabR::bookdown_open(bookdown_path)
#### Step 9: Extract and save harmonized data into a pre-set folder
harmonized_dataset <- Rmonize::pooled_harmonized_dataset_create(harmonized_dossier)

ifelse(!dir.exists(file.path(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name)))),dir.create(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name))), FALSE)

readr::write_delim(x = harmonized_dataset,
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_harmonized.csv")),
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_", system_name, "/", dataset_name,"_harmonized.csv")),
delim = ",",
na = "")

Expand Down
4 changes: 3 additions & 1 deletion scripts/KORA_S1_P2.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ fabR::bookdown_open(bookdown_path)
#### Step 9: Extract and save harmonized data into a pre-set folder
harmonized_dataset <- Rmonize::pooled_harmonized_dataset_create(harmonized_dossier)

ifelse(!dir.exists(file.path(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name)))),dir.create(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name))), FALSE)

readr::write_delim(x = harmonized_dataset,
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_harmonized.csv")),
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_", system_name, "/", dataset_name,"_harmonized.csv")),
delim = ",",
na = "")
4 changes: 3 additions & 1 deletion scripts/KORA_S3_P1.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ fabR::bookdown_open(bookdown_path)
#### Step 9: Extract and save harmonized data into a pre-set folder
harmonized_dataset <- Rmonize::pooled_harmonized_dataset_create(harmonized_dossier)

ifelse(!dir.exists(file.path(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name)))),dir.create(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name))), FALSE)

readr::write_delim(x = harmonized_dataset,
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_harmonized.csv")),
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_", system_name, "/", dataset_name,"_harmonized.csv")),
delim = ",",
na = "")
4 changes: 3 additions & 1 deletion scripts/KORA_S3_P2.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ fabR::bookdown_open(bookdown_path)
#### Step 9: Extract and save harmonized data into a pre-set folder
harmonized_dataset <- Rmonize::pooled_harmonized_dataset_create(harmonized_dossier)

ifelse(!dir.exists(file.path(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name)))),dir.create(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name))), FALSE)

readr::write_delim(x = harmonized_dataset,
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_harmonized.csv")),
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_", system_name, "/", dataset_name,"_harmonized.csv")),
delim = ",",
na = "")
4 changes: 3 additions & 1 deletion scripts/LISA_P1.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ fabR::bookdown_open(bookdown_path)
#### Step 9: Extract and save harmonized data into a pre-set folder
harmonized_dataset <- Rmonize::pooled_harmonized_dataset_create(harmonized_dossier)

ifelse(!dir.exists(file.path(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name)))),dir.create(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name))), FALSE)

readr::write_delim(x = harmonized_dataset,
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_harmonized.csv")),
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_", system_name, "/", dataset_name,"_harmonized.csv")),
delim = ",",
na = "")

Expand Down
4 changes: 3 additions & 1 deletion scripts/LISA_P2.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ fabR::bookdown_open(bookdown_path)
#### Step 9: Extract and save harmonized data into a pre-set folder
harmonized_dataset <- Rmonize::pooled_harmonized_dataset_create(harmonized_dossier)

ifelse(!dir.exists(file.path(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name)))),dir.create(here::here("output/harmonised_dataset/", paste0(dataset_name, "_", system_name))), FALSE)

readr::write_delim(x = harmonized_dataset,
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_harmonized.csv")),
file = here::here(paste0("output/harmonised_dataset/", dataset_name, "_", system_name, "/", dataset_name,"_harmonized.csv")),
delim = ",",
na = "")

Expand Down

0 comments on commit 2c51829

Please sign in to comment.