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,875
  • 4
  • 17
  • 23

2 Answers2

16

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,875
  • 4
  • 17
  • 23
6

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

mathematical.coffee
  • 55,977
  • 11
  • 154
  • 194