Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dplyr::select function clashes with MASS::select

Tags:

r

dplyr

If I load the MASS package:

library(MASS) 

then load try to run dplyr::select, I get a error:

library(dplyr) mtcars %.% select(mpg)  # Error in select(`__prev`, mpg) : unused argument (mpg) 

How can I use dplyr::select with the MASS package loaded?

like image 374
luciano Avatar asked Jun 13 '14 09:06

luciano


1 Answers

As Pascal said, the following works

require(MASS) require(dplyr) mtcars %>%    dplyr::select(mpg) 
like image 171
r.bot Avatar answered Oct 09 '22 02:10

r.bot