scidbsteval: Executes cascaded operations and stores data in scidb under a...

Description Usage Arguments Value Note See Also Examples

Description

The function works in the similar way as scidbeval. As an expression this function requires a 'scidbst' object, which can be modified by various scidb operations. By calling this function the actual commands are executed in the SciDB cluster. The result will be stored under the given 'name' parameter. In addition to the original function, the evaluation of a scidbst object will also set the current spatial and/or temporal reference.

Usage

1
2
3
## S4 method for signature 'scidbst,character'
scidbsteval(expr, name, eval = TRUE,
  gc = TRUE, temp = FALSE, drop = TRUE)

Arguments

expr

The scidbst object

name

The name of the target array in which the data is stored (required).

eval

A flag whether or not the commands shall be executed in scidb

gc

A flag whether or not the result should be tied to the R garbage collector

temp

A flag wheter or not the resulting scidb array is temporary

drop

Whether or not to drop spatial or temporal references, when dimension is removed from array

Value

The modified scidbst object

Note

Using the similar function scidbeval function will also perform the storing operation, but it will not transfer the dimension references for space and/or time. Also, unbounded dimensions that are not dropped will be created as bounded dimensions by its minimum/maximum dimension value.

In contrast to scidbeval the parameter name is required. The creation of arrays with a random name in scidb are not supported by scidbsteval.

See Also

scidbeval

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
scidbconnect(...)
scidbst.obj = scidbst(array_name) # array with spatial and temporal dimensions

#array renaming
scidbsteval(expr=scidbst.obj,name=new_name)

# slicing and storing
sliced = slice(scidbst.obj,"t","2016-05-03")
scidbsteval(sliced,new_name)

# aggregation over space and storing
agg.t = aggregate(x=scidbst.obj,by=list("t"),FUN="avg(attribute1)")
scidbsteval(agg.t,name=new_name)

## End(Not run)

flahn/scidbst documentation built on May 16, 2019, 1:15 p.m.