0

R is not recognizing the pipe function, even though I have dplyr installed. Everything I have found online has said to install dpylr, but that does not help my case at all.

Here is my chunk of code:

factor_vars <- small_vdem %>% 
            mutate(
            democracy = factor(e_boix_regime, 
               labels = c("Autocracy", "Democracy")), # levels used when coding nomial variable to factor
            conflict =  factor(e_civil_war, 
              labels = c("Peace", "War")), #labels used when recoding quantitative variable to factor
            gdp_grow = factor(if_else(small_vdem$e_migdpgro > mean(small_vdem$e_migdpgro), "High", "Low")
              ))

Any help would be greatly appreciated.

Rui Barradas
  • 70,273
  • 8
  • 34
  • 66

0 Answers0