Description Usage Arguments Value Examples
itertools.accumulate
1 | iter.accumulate(p, func = NULL)
|
p |
|
func |
list or vector
1 2 3 | iter.accumulate(c(1, 2, 3, 4, 5))
iter.accumulate(c('A', 'B', 'C'))
iter.accumulate(c(1, 2, 3, 4, 5), func = function(x, y) { x * y })
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.