How can I prevent a library from masking functions

前端 未结 5 1046
一个人的身影
一个人的身影 2021-02-04 06:21

A typical situation is the following:

library(dplyr)
library(xgboost)

When I import the library xgboost, the function slice<

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 06:50

    I know this is a silly answering and this thread is very old (but I only had the same issue today): I changed the sequence of loading the packages. Personally, I was having a problem with MASS and Dplyr "select" function. I would like to use always Dplyr version. So I loaded MASS first!

提交回复
热议问题