Error: could not find function “%>%”

You need to load a package (like magrittr or dplyr) that defines the function first, then it should work. install.packages(“magrittr”) # package installations are only needed the first time you use it install.packages(“dplyr”) # alternative installation of the %>% library(magrittr) # needs to be run every time you start R and want to use %>% … Read more