public interface REXP
Modifier and Type | Method and Description |
---|---|
void |
checkX(int x)
Method that check if the index is inside the REXP bounds.
|
Object |
getAttribute(String attribute)
Method to get the value of an attribute (there is no synchronizing with
R, use the update() method to synchronize data with R before using this
method if you think data may have changed.
|
Map<String,Object> |
getAttributes()
Method to get all the attributes of the data.frame (there is no
synchronizing with R, use the update() method to synchronize data with R
before using this method if you think data may have changed.
|
void |
getFrom(String variable)
Method to get a data.frame from a variable in R.
|
String |
getVariable()
Method to get the variable name of the REXP
|
void |
setAttribute(String attribute,
Object value)
Method to set the value of an attribute (there is no synchronizing with
R, use the commit() method to send data to R.
|
void |
setAttributes(Map<String,Object> attributes)
Method to set all the attributes of the data.frame (there is no
synchronizing with R, use the commit() method to send data to R.
|
String |
toRString()
Method to export the R object in a String for evaluation in R.
|
String toRString() throws RException
RException
void getFrom(String variable) throws RException
variable
- name of the data.frame in RRException
void setAttributes(Map<String,Object> attributes) throws RException
attributes
- a Map containing the attributes (key) and values (value)
(values are a R expression, String may be rounded with escaped
quote like : \"this is a R string\" ).RException
Map<String,Object> getAttributes() throws RException
RException
Object getAttribute(String attribute) throws RException
attribute
- name of the attributeRException
void setAttribute(String attribute, Object value) throws RException
attribute
- name of the attributevalue
- the value to be set (this is a R expression, String may be
rounded with escaped quote like : \"this is a R string\" ).RException
String getVariable()
void checkX(int x)
x
- indexCopyright © 2006–2018 CodeLutin. All rights reserved.