loading dplyr after plyr is causing issues

后端 未结 2 1754
难免孤独
难免孤独 2020-12-18 11:11

Test Case:

library(dplyr)
library(plyr)
library(dplyr)
mtcars%>%rename(x=gear)

This gives error. Any help would be greatly appreciated.

2条回答
  •  孤城傲影
    2020-12-18 11:28

    Based on @hadley's tweet. Best answer is to load plyr ALWAYS before dplyr, AND not load plyr again. Pasting his tweet for reference.


    Hadley Wickham ‏@hadleywickham  Jul 27
    @gunapemmaraju just load plyr before dplyr?
    

提交回复
热议问题