Displaying 1 result from an estimated 1 matches for "runmeanbyeval_work".
Did you mean:
runmeanbyeval_works
2005 Jul 20
2
unable to call R t-test from Java
...bject value = e.eval("t.test (c(1,2,3), c(4,5,6))");
if (value != null)
interp.show(value);
}
/**
* want to see if I can eval anything that takes a vector, e.g. mean,
* like what I would run in the R command line
*/
static public void runMeanByEval_works(REvaluator e, ROmegahatInterpreter interp)
{
System.err.println("\r\n evaluation string mean command");
Object value = e.eval("mean(c(1,2,3))");
if(value != null)
{
interp.show(value );
System.err.println("\r\n...