ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
New names:
* `` -> ...1
* `` -> ...6
* `` -> ...7
Rows: 417 Columns: 7
── Column specification ────────────────────────────────────────────────────────
Delimiter: ";"
chr (1): Region
dbl (2): ...1, Anteil in Prozent der Beschäftigten mit Mindestlohn-anspruch
lgl (2): ...6, ...7
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Warning in mask$eval_all_mutate(quo): NAs introduced by coercion
Warning in mask$eval_all_mutate(quo): NAs introduced by coercion
Warning in mask$eval_all_mutate(quo): NAs introduced by coercion
Warning in mask$eval_all_mutate(quo): NAs introduced by coercion
Warning in mask$eval_all_mutate(quo): NAs introduced by coercion
Warning in mask$eval_all_mutate(quo): NAs introduced by coercion
Warning in mask$eval_all_mutate(quo): NAs introduced by coercion
#calculater for berlin as whole from east (11100) and west (11200) to 11000wahl <- wahl %>%add_row(kreis ="11000",name ="Berlin",land ="BE",waehler = wahl$waehler[wahl$kreis =="11100"] + wahl$waehler[wahl$kreis =="11200"],afd_stimmen = wahl$afd_stimmen[wahl$kreis =="11100"] + wahl$afd_stimmen[wahl$kreis =="11200"],afd_prozent = (afd_stimmen / waehler) ) %>%filter(!kreis %in%c("11100", "11200")) #remove east and west berlin
lohn <- mindestlohn %>%rename("kreis"="...1","name"="Region","lohn_prozent"="Anteil in Prozent der Beschäftigten mit Mindestlohn-anspruch" ) %>%select(kreis, name, lohn_prozent) %>%# select kreis with 4 or 5 digitsfilter(nchar(kreis) ==4|nchar(kreis) ==5 ) %>%# add leading zero to kreis with 4 digitsmutate(kreis =ifelse(nchar(kreis) ==4, paste0("0", kreis), kreis) )