opal.assign.data: Data assignment

View source: R/opal.assign.R

opal.assign.dataR Documentation

Data assignment

Description

Assign a R object to a R symbol in the current R session.

Usage

opal.assign.data(opal, symbol, value, async = FALSE)

Arguments

opal

Opal object or list of opal objects.

symbol

Name of the R symbol.

value

The R object to assign (data.frame, vector).

async

R script is executed asynchronously within the session (default is FALSE). If TRUE, the value returned is the ID of the command to look for (from Opal 2.1).

See Also

Other assignment functions: opal.assign.resource(), opal.assign.script(), opal.assign.table.tibble(), opal.assign.table(), opal.assign()

Examples

## Not run: 
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
# push an arbitrary data frame to the R server
opal.assign.data(o, "D", mtcars)
# push an arbitrary vector to the R server
opal.assign.data(o, "C", mtcars$cyl)
# push a string
opal.assign.data(o, "S", "Hello!")
opal.logout(o)

## End(Not run)

opalr documentation built on Oct. 6, 2023, 5:08 p.m.