[Rd] Proposals

From: BXC (Bendix Carstensen) <bxc_at_steno.dk>
Date: Tue 05 Jul 2005 - 07:59:07 GMT

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

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.


Bendix Carstensen
Senior Statistician
Steno Diabetes Center
Niels Steensens Vej 2
DK-2820 Gentofte
tel: +45 44 43 87 38
mob: +45 30 75 87 38
fax: +45 44 43 07 06


R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Jul 05 18:03:12 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:25 GMT