[R] cumsum in 3d arrays

Dennis Murphy djmuser at gmail.com
Mon Nov 28 13:44:22 CET 2011


Hi:

Could you supply a small reproducible example with the output that you
expect? For example, what output would you expect from the following:

a <- array(1:24, c(2, 2, 3))

?
Dennis

On Mon, Nov 28, 2011 at 12:32 AM, zloncaric
<zloncaric at biologija.unios.hr> wrote:
> Thank you for your time and help.
>
> I'm quite aware that this problem seems as basic stuff, and of course I've
> read several R and matlab manuals, and also consulted the D. Hiebeler,
> Matlab / R Reference and several others, but none of the suggested solutions
> seems to give me the right result.
> I've tried the combination of apply and cumsum but the result is wrong.
>
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/cumsum-in-3d-arrays-tp4110470p4114510.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list