[R] Check functions in package
Tobias Verbeke
tobias.verbeke at openanalytics.be
Tue Jul 28 22:54:23 CEST 2009
Steve Lianoglou wrote:
> On Jul 28, 2009, at 4:16 PM, voidobscura wrote:
>
>>
>> Hi, I run R on a server via SSH, over a terminal. After loading a
>> specific
>> package, how do I know what functions are in that package? Is there
>> any way
>> to list or display them?
>
>
> Here's one way. Let's say I load the "glmnet" package, at the prompt I
> could use tab-completion to which functions are exported:
>
> R> library(glmnet)
> R> glmnet::<TAB><TAB>
> glmnet::coef.glmnet glmnet::jerr glmnet::plot.glmnet
> glmnet::predict.elnet glmnet::predict.lognet glmnet::print.glmnet
> glmnet::glmnet glmnet::nonzeroCoef glmnet::plotCoef
> glmnet::predict.glmnet glmnet::predict.multnet
>
> <TAB><TAB> is hitting the tab key twice in quick succession.
>
> There are probably better ways, but there's one option.
An alternative is (in this case) to call
library(help = glmnet)
Best,
Tobias
More information about the R-help
mailing list