[R] determining if a function exists in a particular package
Gabor Grothendieck
ggrothendieck at gmail.com
Fri Apr 27 23:26:45 CEST 2012
On Fri, Apr 27, 2012 at 5:13 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> I found the solution in an old post:
>
> It's
> lsf.str("package:ts")
>
> for functions.
>
> Cool!
>
Note that that gives exported functions. If you also want internal
functions in addition to the exported ones then try this:
library(ts)
lsf.str(asNamespace("ts"))
Also note that these not give functions whose name starts with dot
unnless all.names=TRUE is added as an argument.
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-help
mailing list