Skip to content
Snippets Groups Projects
Commit 52f5698d authored by untergeekDE's avatar untergeekDE
Browse files

NA-Werte ersetzt, da sie Datawrapper irritieren

parent cea3bc8c
No related branches found
No related tags found
No related merge requests found
...@@ -6,10 +6,10 @@ aktualisiere_karten <- function(wl_url = stimmbezirke_url) { ...@@ -6,10 +6,10 @@ aktualisiere_karten <- function(wl_url = stimmbezirke_url) {
neue_orts_df <- lies_gebiet(wl_url) %>% neue_orts_df <- lies_gebiet(wl_url) %>%
aggregiere_stadtteile() %>% aggregiere_stadtteile() %>%
mutate(quorum = ifelse(wahlberechtigt == 0, mutate(quorum = ifelse(wahlberechtigt == 0,
NA, 0,
ja / wahlberechtigt * 100)) %>% ja / wahlberechtigt * 100)) %>%
mutate(status = ifelse(meldungen_anz == 0, mutate(status = ifelse(meldungen_anz == 0,
NA, "KEINE DATEN",
paste0(ifelse(meldungen_anz < meldungen_max, paste0(ifelse(meldungen_anz < meldungen_max,
"TREND ",""), "TREND ",""),
ifelse(ja < nein, ifelse(ja < nein,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment