|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.Object |
dummy
dummy object. |
static java.lang.String |
TEMP_MATRIX_CONTENT_JGR
|
static java.lang.String |
TEMP_MATRIX_DIM_NAMES_JGR
|
static java.lang.String |
TEMP_VARIABLE_NAME
|
Constructor Summary | |
---|---|
RController()
|
Method Summary | |
---|---|
static java.lang.String |
addSlashes(java.lang.String str)
|
static java.lang.String |
commonWithPrefix(java.lang.String str1,
java.lang.String str2)
Compare to string and return the common prefix. |
static java.lang.String[] |
completeCommand(java.lang.String partOfCmd)
Show all posibilities to complete your given part of a command. |
static java.lang.String[] |
completeFile(java.lang.String part)
Completetion of a file (doesn't supports multiple fils yet). |
static java.util.Vector |
createContent(RObject o,
java.util.Collection c)
Get the content of an RObject (list, data.frame, table, matrix). |
static REXP |
createDataFrame(RList l,
REXP rownames)
|
static RModel |
createRModel(java.lang.String sx,
java.lang.String type)
Create RModel (java-side) out of R |
static RObject |
createRObject(java.lang.String sx,
java.lang.String type,
RObject parent,
boolean b)
Ceates an (java-side) out of R |
static boolean |
export(SVarSet vs,
java.lang.String type)
Export an SVarSet to R. |
static java.lang.String |
getCurrentPackages()
Get R_DEFAULT_PACKAGES. |
static java.lang.String[] |
getDefaultPackages()
Get default packages as defined by R |
static java.lang.String |
getFunHelpTip(java.lang.String s)
|
static java.lang.String[] |
getJgrDefaultPackages()
Get default packages as defined by JGR (i.e. |
static java.lang.String[] |
getKeyWords()
Get all keywords for syntaxhighlighting. |
static java.lang.String[] |
getObjects()
Get object names used for syntaxhighlighting. |
static java.lang.String |
getRContinue()
Get R continue |
static java.lang.String |
getRHome()
Get R_HOME. |
static java.lang.String[] |
getRLibs()
Get R_LIBS. |
static java.lang.String |
getRPrompt()
Get R prompt |
static java.lang.String |
getSummary(RObject o)
Get summary of an RObject , R-command summary(...). |
static boolean |
isValidSubsetExp(java.lang.String subset,
java.lang.String dataName)
|
static void |
loadPackage(java.lang.String pack)
loads a package. |
static java.lang.String |
makeRStringVector(java.util.ArrayList lis)
|
static java.lang.String |
makeRStringVector(javax.swing.DefaultListModel mod)
|
static java.lang.String |
makeRStringVector(javax.swing.JList list)
|
static java.lang.String |
makeRStringVector(java.util.Vector mod)
|
static java.lang.String |
makeRVector(javax.swing.DefaultListModel mod)
|
static java.lang.String |
makeRVector(java.util.Vector vec)
|
static java.lang.String |
makeValidVariableName(java.lang.String var)
|
static void |
newFunction(RObject o)
|
static SVarSet |
newSet(RObject o)
Create a new SVarSet of the specified RObject . |
static SVar |
newVar(SVarSet cvs,
java.lang.String name,
double[] d)
Construct a new numerical variable from supplied array of doubles. |
static SVar |
newVar(SVarSet cvs,
java.lang.String name,
int[] d)
Construct a new numerical variable from supplied array of integers. |
static SVar |
newVar(SVarSet cvs,
java.lang.String name,
int[] ix,
java.lang.String[] d)
|
static SVar |
newVar(SVarSet cvs,
java.lang.String name,
java.lang.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 java.lang.Object[][] |
refreshPackages()
Get information about all packages (loaded, undloaded, defaults ...). |
static void |
requirePackages(java.lang.String rlist)
load and attach packages defined by the string "pkg, pkg, ..." |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEMP_MATRIX_DIM_NAMES_JGR
public static final java.lang.String TEMP_MATRIX_CONTENT_JGR
public static final java.lang.String TEMP_VARIABLE_NAME
public static java.lang.Object dummy
Constructor Detail |
---|
public RController()
Method Detail |
---|
public static java.lang.String getRHome()
public static java.lang.String[] getRLibs()
public static java.lang.String getRPrompt()
public static java.lang.String getRContinue()
public static java.lang.String getCurrentPackages()
public static java.lang.String[] getDefaultPackages()
public static java.lang.String[] getJgrDefaultPackages()
public static void requirePackages(java.lang.String rlist)
public static void loadPackage(java.lang.String pack)
pack
- public static java.lang.String[] completeCommand(java.lang.String partOfCmd)
partOfCmd
- part which you want to complete
public static java.lang.String[] completeFile(java.lang.String part)
part
- of file to complete
public static java.lang.String addSlashes(java.lang.String str)
public static java.lang.String makeValidVariableName(java.lang.String var)
public static java.lang.String makeRStringVector(java.util.ArrayList lis)
public static java.lang.String makeRStringVector(javax.swing.JList list)
public static java.lang.String makeRStringVector(javax.swing.DefaultListModel mod)
public static java.lang.String makeRStringVector(java.util.Vector mod)
public static java.lang.String makeRVector(java.util.Vector vec)
public static java.lang.String makeRVector(javax.swing.DefaultListModel mod)
public static boolean isValidSubsetExp(java.lang.String subset, java.lang.String dataName)
public static java.lang.String[] getKeyWords()
public static java.lang.String[] getObjects()
public static void refreshObjects()
public static java.lang.Object[][] refreshPackages()
public static java.util.Vector createContent(RObject o, java.util.Collection c)
RObject
(list, data.frame, table, matrix).
o
- RObject
c
- all found objects are collected in c (currently disabled)
RObject
public static RObject createRObject(java.lang.String sx, java.lang.String type, RObject parent, boolean b)
sx
- nametype
- typeparent
- parent b
- names(..) provides real names or not
public static RModel createRModel(java.lang.String sx, java.lang.String type)
RModel
(java-side) out of R
sx
- nametype
- type (currently only lm and glm is supported
RModel
public static java.lang.String getFunHelpTip(java.lang.String s)
public static java.lang.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, java.lang.String name, double[] d)
name
- variable named
- array of doubles
public static SVar newVar(SVarSet cvs, java.lang.String name, int[] d)
name
- variable named
- array of integers
public static SVar newVar(SVarSet cvs, java.lang.String name, java.lang.String[] d)
name
- variable named
- array of strings
public static SVar newVar(SVarSet cvs, java.lang.String name, int[] ix, java.lang.String[] d)
public static boolean export(SVarSet vs, java.lang.String type)
vs
- datasettype
- R-class of RObject
behind vs
public static REXP createDataFrame(RList l, REXP rownames) throws REXPMismatchException
REXPMismatchException
public static java.lang.String commonWithPrefix(java.lang.String str1, java.lang.String str2)
str1
- String 1str2
- String 2
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |