tabulate
Bill Venables
William.Venables@cmis.CSIRO.AU
Sun, 23 Jan 2000 10:26:31 +1000
> Dear R-Developers,
>
> Would it be possible / is it desirable to alter tabulate
> so that the lower boundary
> can be set in addition to the upper boundary? eg,
>
> tabulate(bin, low=min(1,bin), nbin=max(1,bin))
>
> would silently ignore elements outside the range low..nbin
>
> It is easy to get around this at present, of course,
> but seems natural to have a more flexible function.
> [or should I be using another function?]
I would oppose it on the grounds that tabulate() is a low-level
function and making a change like this is likely to slow it down
(if marginally) and to hinder porting software from R to S, which
I regard as an important consideration, if not an over-riding one.
table() should be the usual function for everyday use (and using
this makes the change to tabulate() unnecessary), but on R the
difference in speed between table() and tabulate() can be
dramatic. I would suggest improving the efficiency of table()
should be a fairly high priority.
Bill.
--
-----------------------------------------------------------------
Bill Venables, Statistician, CMIS Environmetrics Project.
Physical address: Postal address:
CSIRO Marine Laboratories, PO Box 120,
233 Middle St, Cleveland, Qld, 4163 Cleveland, Qld, 4163
AUSTRALIA AUSTRALIA
Tel: +61 7 3826 7251 Email: Bill.Venables@cmis.csiro.au
Fax: +61 7 3826 7304 http://www.cmis.csiro.au/bill.venables/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._