rockr.assign.data {rockr} | R Documentation |
Assign an R object
Description
Assign an R object to a R symbol in the remote R session.
Usage
rockr.assign.data(conn, symbol, value, async = FALSE)
Arguments
conn |
A rockr connection object. |
symbol |
Name of the R symbol. |
value |
The R object to assign (data.frame, vector, etc.). |
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. |
Value
The command object if async is TRUE
See Also
Other assignment functions:
rockr.assign.expr()
,
rockr.assign()
Examples
## Not run:
conn <- rockr.connect(username='user', password='password',
url='https://rocker-demo.obiba.org')
rockr.open(conn)
# push a data frame to the R server
rockr.assign.data(o, "D", mtcars)
# push a vector to the R server
rockr.assign.data(o, "C", mtcars$cyl)
# push a string
rockr.assign.data(o, "S", "Hello!")
## End(Not run)
[Package rockr version 1.0.0 Index]