[R] How to know in which package is a function

Liaw, Andy andy_liaw at merck.com
Sat Apr 23 17:41:59 CEST 2005


> From: Romain Francois
> 
> Hello list,
> 
> I'd like to know if there is a function that tells in which 
> package is a 
> given function.
> Something like :
> 
> which.package("lda")
> [1] "MASS"

getAnywhere(), as Uwe suggested, will find objects that are in attached
packages.  help.search(), as Doug suggested, will find help topics among
installed packages.  To search among all CRAN (and BioC) packages, your best
best is RSiteSearch("fcn", restrict="function").  The result is not shown in
R, though.

Andy

 
> Thank you.
> 
> Romain
> 
> -- 
> ~~~~~~~~ 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
> ~~~~~~      Romain FRANCOIS - http://addictedtor.free.fr      
>    ~~~~~~
> ~~~~        Etudiant  ISUP - CS3 - Industrie et Services      
>      ~~~~
> ~~                http://www.isup.cicrp.jussieu.fr/           
>        ~~
> ~~~~           Stagiaire INRIA Futurs - Equipe SELECT         
>      ~~~~
> ~~~~~~   http://www.inria.fr/recherche/equipes/select.fr.html 
>    ~~~~~~
> ~~~~~~~~ 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 
>




More information about the R-help mailing list