[R] Effeciently sum 3d table
Greg Snow
538280 at gmail.com
Mon Apr 16 17:53:46 CEST 2012
Look at the Reduce function.
On Mon, Apr 16, 2012 at 8:28 AM, David A Vavra <davavra at verizon.net> wrote:
> I have a large number of 3d tables that I wish to sum
> Is there an efficient way to do this? Or perhaps a function I can call?
>
> I tried using do.call("sum",listoftables) but that returns a single value.
>
> So far, it seems only a loop will do the job.
>
>
> TIA,
> DAV
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com
More information about the R-help
mailing list