JavaScript is disabled on your browser.
Method Summary
All Methods Instance Methods Abstract Methods
void
Assigns a value to a variable in R.
REXP
Parses and evaluates an R expression and returns the result.
REXP
Often in R, results have a 'names' attribute, for example the parameter names in an lm() regression
void
Future functionality - Not yet implemented!
When evaluating an expression in R some output may be printed as a side effect, such as by lm().
Method Details
assign
Parameters:
var
- Variable to assign to
value
- Value(s) to assign
See Also:
eval
Parses and evaluates an R expression and returns the result.
An expression can be as short as or as long as needed (i.e. a whole script).
Parameters:
expr
- The expression, as string, to evaluate
Returns:
The resulting expression or null in case of an error (see REXP )
See Also:
get
Retreives a value from R
Parameters:
var
- The variable to retreive the value from
Returns:
The resulting expression (see REXP )
See Also:
names
Often in R, results have a 'names' attribute, for example the parameter names in an lm() regression
Parameters:
var
- The variable to retreive the names from
Returns:
The names array, or null if there is no such attribute
print
When evaluating an expression in R some output may be printed as a side effect, such as by lm().
While not structured data, it may be useful to capture this output to show as a calculation result in the UI, or merely for logging purposes.
Parameters:
var
- The variable to print, i.e. where that expression was assigned to
Returns:
The printed output as a string
plot
Future functionality - Not yet implemented!
Parameters:
expr
-
fileName
-