it should not happen if you load the package in the correct order you want.
Restart your R session (this will detach all your current packages) and load the package in the order so that the last ones masked the first ones.
You should have a look at {conflicted} too.
Useful if you have to deal with this kind of thing regularly.
The base R way is to reorder your environment, by putting dplyr
above stats
. Here is my order currently.
detach("package:dplyr")
library(dplyr)
will detach the and re attach it above all other.
I let you dig into all this. Best advice is: Be used to work in a clean session regularly to avoid any conflicts or misplaced objects in workspaces.