[R] listing all test functions in base R
M.Gagolewski
egzaltowany at gmail.com
Wed Jan 2 13:56:25 CET 2013
On 02.01.2013 13:40, Data Analytics Corp. wrote:
> Is there a way to create a list of all statistical test functions in
> base R? For example, there's t.test, ks.test, chisq.test, etc. I'd
> like to create a list of these test names because I keep looking for
> different tests but never know what's available. I'm thinking of a
> regular expression statement but I'm not sure how this would work for
> functions. Or is there a list already available? Any suggestions?
Hello,
Perhaps you could operate on function names.
Maybe something like:
funs <- getNamespaceExports("stats")
funs[grep(".*test$", funs)]
Regards,
--
Marek Gagolewski, Ph.D.
Systems Research Institute, Polish Academy of Sciences
ul. Newelska 6, 01-447 Warsaw, Poland
phone: +48 22 3810 393, fax: +48 22 3810 105
www: http://www.ibspan.waw.pl/~gagolews
More information about the R-help
mailing list