This dplyr-command usually works just perfect for me, when I want to recode variables. But for some reason it all of the sudden hates the commas, but won't run without them... I have (re)installed both haven and dplyr several times. Any ideas? The first words are Danish names of variables.
OLS <- cses %>% 
transmute(efficacy=iA3029_m,
        uddannelse=iA2003_m,
        køn=iA2002_m-1,
        alder=iA2001_m,
        husindkomst=iA2012_m,
        arbejdsløs=ifelse(iA2007_m==5,1,0),
        sektor=convert_to_NA(as.factor(iA2009_m1),3),
        højre-venstre=convert_to_NA(as.numeric(iA3031_m),95),
        civilstand=ifelse(iA2004_m1==1,1,0),
        religiøs=iA2016_m,
        land-by=iA2022_m,
        polviden,
        aar,
        land) %>% 
 
    