Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

loading dplyr after plyr is causing issues

Tags:

r

dplyr

plyr

Test Case:

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

This gives error. Any help would be greatly appreciated.

like image 614
guna Avatar asked Dec 04 '22 02:12

guna


1 Answers

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?
like image 163
guna Avatar answered Dec 18 '22 22:12

guna