datashield.aggregate {opal}R Documentation

Data aggregation

Description

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

Usage

datashield.aggregate(opal, expr, async = TRUE, wait = TRUE)

## S3 method for class 'opal'
datashield.aggregate(opal, expr, async = TRUE, wait = TRUE)

## S3 method for class 'list'
datashield.aggregate(opal, expr, async = TRUE, wait = TRUE)

Arguments

opal

Opal object or list of opal objects.

expr

Expression to evaluate.

async

R script is executed asynchronously within the session (default is TRUE).

wait

Wait for the R script asynchronously executed to complete (makes sense only with async=TRUE).

Value

The result of the aggregation or the R command ID if the async flag is TRUE and if the wait flag is FALSE and if Opal version is at least 2.1.


[Package opal version 2.6.0 ]