Message-ID: <Pine.A41.4.33.0107021904160.126404-100000@homer28.u.washington.edu>
Date: 2001-07-03T02:12:24Z
From: Thomas Lumley
Subject: extracting pkg fcn info
In-Reply-To: <3B4124A4.825A701A@scharp.org>
On Mon, 2 Jul 2001, Natalie Hawkins wrote:
>
>
> I would like to learn what functions are available in a given R package
> (say, the pkg sma) and
> what the arguments and return value is for each of those functions.
>
> Is there an R CMD available for that or a suggested method for easily
> extracting
> that information?
help(library="package")
will give a listing of the functions (and perhaps other information).
For a list of all the arguments and return values I would suggest the PDF
manual pages for that package. These are all on CRAN or can be built from
the latex help.
You could get the arguments from
library("somepackage")
sapply(ls(pos=2),function(nm) args(get(nm)))
but that wouldn't tell you want it meant.
-thomas
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._