I am encountering a strange problem in using packages MASS and dplyr together in R using RStudio. The following code
library(dplyr)
select(iris, starts_with("Petal"))
works and gives me the right output. But if I try to load MASS package and use the same code
library(MASS)
library(dplyr)
select(iris, starts_with("Petal"))
I get an error
select(iris, starts_with("Petal"))
Error in select(iris, starts_with("Petal")) :
unused argument (starts_with("Petal"))
Is there a known issue with using dplyr with MASS in RStudio. I am loading dplyr after MASS so as not to mask the select from dplyr. I have un-installed and re-installed my RStudio also, but the error persists.
I am using R Version 3.2.2, MASS version - 7.3-45 and dplyr version 0.5.0
Any help would be highly appreciated!
sn248