12

I would like to use recode from the car package. But if I have Hmisc loaded, it masks the car version.

There is probably a way to call the masked function. Perhaps there is also a way to force one package to be the dominant one?

Michael Bishop
  • 1,815
  • 4
  • 17
  • 23

2 Answers2

15

You could run into deeper problems, but at the top level car::recode should do the trick. Not sure what happens if recode uses functions that are also masked.

Michael Bishop
  • 1,815
  • 4
  • 17
  • 23
6

Use the namespace (package name): car::recode.

mathematical.coffee
  • 54,152
  • 10
  • 138
  • 187