|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rosuda.JGR.RController
public class RController
RController - implementations of an interface between JGR and Rengine, providing all needed functions for working with R.
| Field Summary | |
|---|---|
static Object |
dummy
dummy object. |
| Constructor Summary | |
|---|---|
RController()
|
|
| Method Summary | |
|---|---|
static String |
commonWithPrefix(String str1,
String str2)
Compare to string and return the common prefix. |
static String[] |
completeCommand(String partOfCmd)
Show all posibilities to complete your given part of a command. |
static String[] |
completeFile(String part)
Completetion of a file (doesn't supports multiple fils yet). |
static Vector |
createContent(RObject o,
Collection c)
Get the content of an RObject (list, data.frame, table, matrix). |
static RModel |
createRModel(String sx,
String type)
Create RModel (java-side) out of R |
static RObject |
createRObject(String sx,
String type,
RObject parent,
boolean b)
Ceates an (java-side) out of R |
static boolean |
export(SVarSet vs,
String type)
Export an SVarSet to R. |
static String |
getCurrentPackages()
Get R_DEFAULT_PACKAGES. |
static String[] |
getDefaultPackages()
Get current installed packages |
static String |
getFunHelpTip(String s)
|
static String[] |
getKeyWords()
Get all keywords for syntaxhighlighting. |
static String[] |
getObjects()
Get object names used for syntaxhighlighting. |
static String |
getRContinue()
Get R continue |
static String |
getRHome()
Get R_HOME. |
static String[] |
getRLibs()
Get R_LIBS. |
static String |
getRPrompt()
Get R prompt |
static String |
getSummary(RObject o)
Get summary of an RObject, R-command summary(...). |
static void |
newFunction(RObject o)
|
static SVarSet |
newSet(RObject o)
Create a new SVarSet of the specified RObject. |
static SVar |
newVar(SVarSet cvs,
String name,
double[] d)
Construct a new numerical variable from supplied array of doubles. |
static SVar |
newVar(SVarSet cvs,
String name,
int[] d)
Construct a new numerical variable from supplied array of integers. |
static SVar |
newVar(SVarSet cvs,
String name,
int[] ix,
String[] d)
|
static SVar |
newVar(SVarSet cvs,
String name,
String[] d)
Construct a new categorical variable from supplied array of strings. |
static void |
refreshObjects()
Browse the workspace for objects and put them in JGR.MODELS, JGR.DATA, JGR.OTHER and JGR.FUNCTIONS. currently only these things which are provided by R-command: ls(pos=1). |
static Object[][] |
refreshPackages()
Get information about all packages (loaded, undloaded, defaults ...). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Object dummy
| Constructor Detail |
|---|
public RController()
| Method Detail |
|---|
public static String getRHome()
public static String[] getRLibs()
public static String getRPrompt()
public static String getRContinue()
public static String getCurrentPackages()
public static String[] getDefaultPackages()
public static String[] completeCommand(String partOfCmd)
partOfCmd - part which you want to complete
public static String[] completeFile(String part)
part - of file to complete
public static String[] getKeyWords()
public static String[] getObjects()
public static void refreshObjects()
public static Object[][] refreshPackages()
public static Vector createContent(RObject o,
Collection c)
RObject (list, data.frame, table, matrix).
o - RObjectc - all found objects are collected in c (currently disabled)
RObject
public static RObject createRObject(String sx,
String type,
RObject parent,
boolean b)
sx - nametype - typeparent - parent b - names(..) provides real names or not
public static RModel createRModel(String sx,
String type)
RModel (java-side) out of R
sx - nametype - type (currently only lm and glm is supported
RModelpublic static String getFunHelpTip(String s)
public static String getSummary(RObject o)
RObject, R-command summary(...).
o - RObject
public static void newFunction(RObject o)
public static SVarSet newSet(RObject o)
SVarSet of the specified RObject.
o - RObject which should be parsed into the dataset
public static SVar newVar(SVarSet cvs,
String name,
double[] d)
name - variable named - array of doubles
public static SVar newVar(SVarSet cvs,
String name,
int[] d)
name - variable named - array of integers
public static SVar newVar(SVarSet cvs,
String name,
String[] d)
name - variable named - array of strings
public static SVar newVar(SVarSet cvs,
String name,
int[] ix,
String[] d)
public static boolean export(SVarSet vs,
String type)
vs - datasettype - R-class of RObject behind vs
public static String commonWithPrefix(String str1,
String str2)
str1 - String 1str2 - String 2
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||