博士生的科研感悟和生活沉淀生信小白

2019-08-03 R语言遇到没有"%>%&q

2019-08-03  本文已影响5人  Shalom小白

具体错误:

Error in gapminder %>% filter(country == "Malawi") : 没有"%>%"这个函数 停止执行

解决方案:

install.packages("magrittr") # package installations are only needed the first time you use it
library(magrittr) # needs to be run every time you start R and want to use %>%

或者

install.packages("dplyr")    # alternative installation of the %>%
library(dplyr)    # alternatively, this also loads %>%

参考

上一篇下一篇

猜你喜欢

热点阅读