datashield.aggregate: Data aggregation

Description Usage Arguments Value Examples

View source: R/datashield.aggregate.R

Description

Aggregates the expression result using the specified aggregation method in the current Datashield session.

Usage

1
datashield.aggregate(conns, expr, async = TRUE)

Arguments

conns

DSConnection-class object or a list of DSConnection-classs.

expr

Expression to evaluate.

async

Whether the result of the call should be retrieved asynchronously. When TRUE (default) the calls are parallelized over the connections, when the connection supports that feature, with an extra overhead of requests.

Value

The result of the aggregation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# call aggregate function on server side
datashield.aggregate(conns, expr = quote(someFunction(D, 123)))

# call aggregate functions that are defined in the provided named list. 
# Connections are filtered by the list names.
datashield.aggregate(conns,
  list(server1=quote(someFunction(D, 123)), server2=quote(someFunction(G, 456))))

## End(Not run)

DSI documentation built on June 22, 2021, 5:06 p.m.