|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.RDataHelper
public class RDataHelper
Helper class for R-related stuff.
| Constructor Summary | |
|---|---|
RDataHelper()
|
|
| Method Summary | |
|---|---|
static SpreadSheet |
dataframeToSpreadsheet(org.rosuda.REngine.REXP dframe)
Converts the R dataframe into a spreadsheet. |
static SpreadSheet |
dataframeToSpreadsheet(org.rosuda.REngine.REXP dframe,
String[] columns)
Converts the R dataframe into a spreadsheet. |
protected static String |
listToString(org.rosuda.REngine.RList list)
Turns an RList into a string. |
static String |
objectToString(Object obj)
Turns an R object into a string. |
static org.rosuda.REngine.REXP |
spreadsheetToDataframe(SpreadSheet sheet)
Turns a spreadsheet into an R dataframe. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDataHelper()
| Method Detail |
|---|
public static org.rosuda.REngine.REXP spreadsheetToDataframe(SpreadSheet sheet)
throws org.rosuda.REngine.REXPMismatchException
sheet - the sheet to convert
org.rosuda.REngine.REXPMismatchException
public static SpreadSheet dataframeToSpreadsheet(org.rosuda.REngine.REXP dframe)
throws org.rosuda.REngine.REXPMismatchException
dframe - the dataframe to convert
org.rosuda.REngine.REXPMismatchException
public static SpreadSheet dataframeToSpreadsheet(org.rosuda.REngine.REXP dframe,
String[] columns)
throws org.rosuda.REngine.REXPMismatchException
dframe - the dataframe to convertcolumns - the list of columns to retrieve, null to retrieve all
org.rosuda.REngine.REXPMismatchExceptionprotected static String listToString(org.rosuda.REngine.RList list)
RList into a string.
list - the list to convert
public static String objectToString(Object obj)
obj - the object to turn into a string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||