[R] categorized complete list of R commands?

Bretschneider SIG-R bretschr at xs4all.nl
Sat Apr 6 00:21:33 CEST 2013


On 04 Apr 2013, at 07:34 , ivo welch wrote:

> every time I read the R release notes for the next release, I see many
> functions that I had forgotten about and many functions that I never knew
> existed to begin with.  (who knew there were bibtex facilities in R?
> obviously, everyone except me.)
> 
> I wonder whether there is a complete list of all R commands (incl the
> standard packages) somewhere, preferably each with its one-liner AND
> categorization(s).  the one-liner can be generated from the documentation.
> I am thinking one categorization for function area (e.g., "programming
> related" for, say, deparse; and "statistical model related" for lm; and
> another categorization for importance (e.g., like "common" for lm and
> "obscure" for ..).  Such categorizations require intelligence.
> 
> if I am going to do this for myself, I think a csv spreadsheet may be a
> good idea to make it easy to resort by keys.
> 
> regards,
> 
> /iaw
> 
> ----
> Ivo Welch (ivo.welch at gmail.com)
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.





A categorized list of functions would indeed come in handy.
So, based on Michael Weylandt's lines, I gave it a try:

> #  categorize functions.R
> #  Franklin Bretschneider
> #  after R-help: R. Michael Weylandt
> #  05-04-2013
> #  =========================
> nprint <- function(x) print(x,quote=FALSE)
> allfuncs = unlist(sapply(search(), ls))
> names(allfuncs) <- NULL
> patterns = c("print", "plot", "axes", "axis", "color", "file", "read", "write", "load", "save","wave", "image", "table", "data", "apply", "title")
> patterns = sort(patterns)  #  optional
> n = length(patterns)
> nprint("     ")
> nprint("     ")
> for (i in 1:n) {
> 	nprint("     ")
> 	nprint(paste("Functions with",patterns[i],":"))
> 	      nprint("===============")
> 	nprint(allfuncs[grep(patterns[i], allfuncs, ignore.case=TRUE)])
> 	nprint("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -")
> 	}
> nprint("     ")
> nprint("     ")
> 


The list of keywords can be adapted to one's own wishes.
Maybe this helps.

Best wishes,


Franklin


--
Franklin Bretschneider
Dept of Biology
Utrecht University
Kruytgebouw W711
Padualaan 8
3584 CH Utrecht
The Netherlands



More information about the R-help mailing list