Reputation: 149
I like aspects of the prettyR describe
function and aspects of Hmisc describe
function. When both packages are loaded, the prettyR describe
masks the Hmisc describe
. I have looked around and found that code such as:
Hmisc::describe(flu$nprloc3)
will supposedly make the Hmisc describe take precedence. I've tried this but I seem to still get the prettyR output. Am I doing anything wrong? I've also tried to find a way to just unload the prettyR package from my global environment (but not uninstall it) but have not been successful.
Upvotes: 1
Views: 497
Reputation: 263451
Hmisc::describe
is generic and may need to be called by the particular class-extension.
methods(describe)
#[1] describe.data.frame describe.default describe.formula describe.matrix
#[5] describe.vector
Try:
Hmisc::describe.vector(1:10)
(I'm not sure this is supposed to be what is happening and it still may be a problem with how one or both of these packages are constructed. I'd nominate prettyR as the likely offender here, since prettyR::describe is not generic, and it seems to be crippling the generic dispatch in keeping Hmisc::describe from working properly)
Upvotes: 1