Description Usage Arguments Examples
Assign a R object to a R symbol in the current R session.
1 | opal.assign.data(opal, symbol, value, async = FALSE)
|
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). |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# 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!")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.