Skip to content

Commit

Permalink
KV4: Daten für Export anpassen und exportieren
Browse files Browse the repository at this point in the history
  • Loading branch information
Grobe Corinna committed Oct 11, 2024
1 parent 0f30824 commit ca422fe
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/export_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export_data <- function(ds, interactive = TRUE){

# expected_variables <- c("Jahr", "Gebiet", "Indikator_ID", "Indikator_Name", "Variable", "Wert", "Einheit", "Datenquelle")
# conditionally define expected_variables -> M2/M4 with additional attribute "gruppe"
expected_variables <- if (any(ds$dataset_id %in% c("M2", "M4"))) {
expected_variables <- if (any(ds$dataset_id %in% c("M2", "M4", "KV4"))) {
c("Jahr", "Gebiet", "Indikator_ID", "Indikator_Name", "Gruppe", "Variable", "Wert", "Einheit", "Datenquelle")
} else {
c("Jahr", "Gebiet", "Indikator_ID", "Indikator_Name", "Variable", "Wert", "Einheit", "Datenquelle")
Expand Down
Loading

0 comments on commit ca422fe

Please sign in to comment.