ttern="iso")
Error in as.environment(pos) : no item called "stats" on the search list
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf
>
On Fri, Apr 27, 2012 at 5:13 PM, Erin Hodgess 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)
ls
You can also use exists():
> library(MASS)
> exists("loglm", where=search()[grepl("MASS", search())])
[1] TRUE
> exists("loglmx", where=search()[grepl("MASS", search())])
[1] FALSE
As for lsf.str(), this only works for loaded packages. You didn't
specify whether you needed to be able to search loa
I found the solution in an old post:
It's
lsf.str("package:ts")
for functions.
Cool!
On Fri, Apr 27, 2012 at 4:12 PM, Mark Leeds wrote:
> Hi Erin: I don't know how to do it programatically but it might be quicker
> to just
> go to the vignette and click on it. All the functions should be in th
Hello R People:
Is there a way to determine if a function exists in a particular
package, please?
I looked at exists and objects, but they seem to refer to an
environment rather than a package.
I was thinking of something like:
ifelse(exists(functiona) in MASS, print(1:10), print(5))
Thanks,
E
5 matches
Mail list logo