We just launched the Epi-package for R.
It contains some functions which are not particular to epidemiology, and which you may consider moving to base/stats/graphics.
They are:
nice() - an extension for pretty() with some improved control for
log-axes.
Relevel() - extension of relevel() allowing collapsing oflevels and
arbitrary reshuffling of ordering ncut() - a cut function returning a numerical rather than factor object.
If you take some of them over, I'll remove them from Epi, and make the necessary changes should the names be changed.
As a quite separate matter, I often find myself doing:
AAnam <- [some named list]
AA <- array( NA, dim=sapply( AAnam, length ), dimnames=AAnam )
It would be a nice facility to have dim= default to sapply( dimnames, length ) if dimnames were given as argument. There really is no other reasonable value possible for dim if dimnames are given.
Best,
Bendix
tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06
This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:25 GMT