Learn R Programming

scidb (version 1.2-0)

cumulate: cumulate

Description

Use cumulate function to compute running operations along data, for example cumulative sums.

Usage

cumulate(x, expression, dimension, eval)

Arguments

x
A scidb or scidbdf object
expression
Any valid SciDB aggregate expression, expressed as a character string
dimension
An optional array dimension name (character) to run along. The default is to use the first dimension.
eval
(Optional) If true, execute the query and store the reult array. Otherwise defer evaluation.

Value

A scidb object.

See Also

aggregate

Examples

Run this code
## Not run: 
# x <- as.scidb(iris)
# y <- cumulate(x, "sum(Petal_Width)")
# 
# print(head(y))
# ## End(Not run)

Run the code above in your browser using DataLab