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

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat Apr 23 15:57:03 CEST 2005


Romain Francois wrote:

> 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"
> 
> Thank you.
> 
> Romain
> 


 > getAnywhere("lda")
A single object matching 'lda' was found
It was found in the following places
   package:MASS
   namespace:MASS
with value

function (x, ...)
UseMethod("lda")
<environment: namespace:MASS>


Uwe Ligges




More information about the R-help mailing list