[Rd] Add DUP = FALSE when tabulate() calls .C("R_tabulate"

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Apr 9 10:48:29 CEST 2012


On 08/04/2012 19:37, Tim Hesterberg wrote:
> In base/R/tabulate.R, tabulate() calls .C("R_tabulate";
> I suggest adding DUP = FALSE to that call.

We can do that.  Note that R-patched already does less copying[*], but 
adding DUP=FALSE may avoid one copy of 'dup' if it is an integer vector. 
  We can avoid another for a factor ....

[*] tracemem() is still reporting 'copies' that are not full duplications.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list