Remove / detach package in R session

My question is that some packages have the same function name. How can I tell R which package I want to use with this function?

I tried to download the package that I wanted to use again in code, but it still doesn't work. My case is select

in MASS

and dplyr

. I want to use dplyr

but the error is always unused argument

...

+3


source to share


1 answer


You can use the operator ::

:

iris %>%
  head(n = 3) %>%
  dplyr::select(Sepal.Length)

      



See here for details .

Or detach MASS ala this post .

+4


source







All Articles