An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130403/9f9e53d2/attachment.ksh>
categorized complete list of R commands?
5 messages · ivo welch, michael.weylandt at gmail.com (R. Michael Weylandt, Hadley Wickham +2 more
On Apr 4, 2013, at 12:34 AM, ivo welch <ivo.welch at anderson.ucla.edu> 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.
I don't think all if those exist already, but the help system gives indices for each package and, within the core packages, things are relatively well categorized simply by knowing the package they're in. Not a full answer, but perhaps saves you a bit of time. Michael
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.
Here's a categorisation of all the functions in base and utils that I made recently (not sure if the csv will survive posting the list). Feedback welcomed - this was just a quick first pass, and it's not authoritative. Hadley
On Thu, Apr 4, 2013 at 12:34 AM, ivo welch <ivo.welch at anderson.ucla.edu> 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.
Chief Scientist, RStudio http://had.co.nz/
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
2 days later
On Thu, Apr 4, 2013 at 7:34 AM, ivo welch <ivo.welch at anderson.ucla.edu> wrote:
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.
Try the 'sos' package. Not exactly what you ask, but close: once you supply a keyword. Liviu