swat | R Documentation |
This package enables you to connect from R to a SAS Cloud Analytic Services host, run actions on in-memory tables, and work with the results of the actions.
The CAS
class provides an interface to your
connection to the CAS server and CAS session.
The CASTable
class provides an interface to the
in-memory tables.
The casDataFrame
class provides an interface
to the results for most actions.
Depending on how you install the package, you might be able to use binary communication with CAS. This is more efficient for bandwidth, but requires that your R installation have access to a precompiled library (rswat.so or rswat.dll). An alternative is to communicate with the server using the REST interface of the server over HTTP. See the connection examples that follow.
The responses and results of the actions are returned as R objects.
s <- CAS('cloud.example.com', 5570) # binary communication s2 <- CAS('cloud.example.com', 8777, protocol='https')
results <- runAction(s, "builtins.serverStatus") results$server nodes actions 1 1 15
You can also run an action using the generated R function:
results <- cas.builtins.serverStatus(s) results$server nodes actions 1 1 15
irisct <- as.casTable(s, iris)
runAction(s, "builtins.loadActionSet", actionSet="regression")
Enter issues at https://github.com/sassoftware/r-swat/issues
See the Actions and Action Sets by Name and Product
Maintainer: Jared Dean Jared.Dean@sas.com
Authors:
Tom Weber Tom.Weber@sas.com
Kevin Smith Kevin.Smith@sas.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.