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

作者: Shalom小白 | 来源:发表于2019-08-03 10:10 被阅读5次

具体错误:

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 %>%

参考

相关文章

网友评论

    本文标题:2019-08-03 R语言遇到没有"%>%&q

    本文链接:https://www.haomeiwen.com/subject/mfaddctx.html