I was thinking simpler, not more clever.

## must be started with R --vanilla
all.sources <- search()
d <- NULL
for (i in 1:length(all.sources)) {
  all.functions <- ls(search()[i])
  N <- length(all.functions)
  if (N==0) next
  d <- rbind(d, data.frame( src=rep(all.sources[i], N), index=1:N,
fname=all.functions ) )
}

write.csv(d, "R-dictionary.csv")


next I want to pick off from all Rd files the \title{} and possibly the
\description{} and \seealso{} and put it into their own columns.  I am also
thinking a clickable URL to the real help page in a column.  (my local R
has an help http server, but after packages, when I clicked on a name, I
got a missing links.  not a big deal---I prefer searching online to
searching local, anyway, so this would be a real http link to some R
website.)


I am thinking I can get an estimate of "common" and "uncommon" by looking
at my own non-internal R code.  It would be interesting to see what common
functions I myself am rarely using---maybe I should learn them.  (I just
found "identical", but even the R source doesn't seem to use it
consistently: see sapply() for example.)


then Bert is right.  next will have to come the non-algorithmic part: my
own categorizations of what functions can be grouped into.  I may give up
on this, or I may not.


putting this onto a shared google docs spreadsheet and allowing anyone
interested in cheat-sheets and R dictionaries to make changes seems like a
good idea.  git and control is overkill here.

regards,

/iaw
----
Ivo Welch (ivo.welch@gmail.com)
http://www.ivo-welch.info/

	[[alternative HTML version deleted]]

