cumsum | R Documentation |
Cumulative sums and products of onions
onion_cumsum(x)
onion_cumprod(x)
x |
onion |
An onion
The octonions are nonassociative but cumprod()
operates
left-associatively, as in ((a[1]*a[2])*a[3])*a[4]
etc.
Robin K. S. Hankin
cumsum(as.quaternion(matrix(runif(20),4,5)))
cumsum(roct(5))
cumprod(rquat(7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.