public class RServeClient extends AbstractRClient
log| Modifier | Constructor and Description |
|---|---|
protected |
RServeClient()
Gets connection on default host (localhost) and port (6311)
|
protected |
RServeClient(String host) |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(String argName,
double[] arg) |
void |
assign(String arg0,
int[] arg1) |
void |
assign(String sym,
String ct) |
void |
assign(String argName,
String[] array) |
boolean |
connect() |
void |
disconnect() |
org.rosuda.REngine.REXP |
eval(String command)
Evaluate the given command
|
void |
finalize() |
protected static String |
findRserveCommand() |
String |
getLastError() |
boolean |
isConnected() |
DoubleMatrix<String,String> |
retrieveMatrix(String variableName)
Get a matrix back out of the R context.
|
void |
voidEval(String command) |
assignFactor, assignFactor, assignMatrix, assignMatrix, assignMatrix, assignStringList, booleanDoubleArrayEval, dataFrame, dataFrameEval, doubleArrayDoubleArrayEval, doubleArrayEval, doubleArrayTwoDoubleArrayEval, doubleTwoDoubleArrayEval, intArrayEval, linearModel, linearModel, listEval, loadLibrary, loadScript, oneWayAnova, oneWayAnovaEval, remove, rowApplyLinearModel, stringEval, stringListEval, twoWayAnova, twoWayAnovaEval, variableIdentityNumberprotected RServeClient()
throws IOException
IOExceptionprotected RServeClient(String host) throws IOException
host - IOExceptionprotected static String findRserveCommand() throws org.apache.commons.configuration2.ex.ConfigurationException
org.apache.commons.configuration2.ex.ConfigurationExceptionpublic void assign(String argName, double[] arg)
public void assign(String arg0, int[] arg1)
public boolean connect()
public void disconnect()
disconnect in class AbstractRClientpublic org.rosuda.REngine.REXP eval(String command)
RClientpublic String getLastError()
public boolean isConnected()
public DoubleMatrix<String,String> retrieveMatrix(String variableName)
RClientpublic void voidEval(String command)
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.