search for: boxmresult

Displaying 9 results from an estimated 9 matches for "boxmresult".

2017 Oct 29
3
Renjin?
...enjin. Looking at the docs and then trying a quick example, didn't quite work. Of course I'm missing something. Although I'm telling the engine to require ("biotools") just like I would in R itself, when I get to the line of code that does the actual call engine.eval("boxMResult <- boxM(inputIris [,-5], inputIris[,5])"); Then, I get: Exception in thread "main" org.renjin.eval.EvalException: could not find function 'boxM' Am I using Renjin as intended? Biotools is installed in R and works fine from RStudio. I didn't see any examples in the...
2017 Oct 27
2
How to do a "Box's M" Test with
...;s M test using Java. The Box's M test says it will work with a data.frame. Here's the setup code: REXP myDf = REXP.createDataFrame(new RList( new REXP[] { new REXPDouble(d1), new REXPDouble(d2), new REXPDouble(d3), new REXPDouble(d4), new REXPInteger(d5) })); Here's the call: REXP boxMResult = rConnection.eval( "boxM(" + myDf+ "[,-5], " + myDf + " [, 5])"); But, I keep getting syntax errors. If this code isn't right, how do you build a data.frame R will like? No examples I can find, anywhere. Not sure what to try next. I've tried just sending a...
2017 Oct 26
1
How to create a table structure in Java code?
...dEval("try(eval("+tableRead+"),silent=TRUE)"); >>>> if (rResponseObject.inherits("try-error")) >>>> { >>>> System.out.println("R Serve Eval Exception : "+rResponseObject.asString()); >>>> } >>>> REXP boxMResult = rConnection.eval("boxM("+ tableRead+ "[,-5]," + tableRead + "[, 5])"); // FAILS << >>>> >>>> Error in the above case is: >>>> Disconnected from the target VM, address: '127.0.0.1:51356', transport: 'socket' &g...
2017 Oct 25
2
How to create a table structure in Java code?
...give me actual error R is sending... REXP rResponseObject = rConnection.parseAndEval("try(eval("+tableRead+"),silent=TRUE)"); if (rResponseObject.inherits("try-error")) { System.out.println("R Serve Eval Exception : "+rResponseObject.asString()); } REXP boxMResult = rConnection.eval("boxM("+ tableRead+ "[,-5]," + tableRead + "[, 5])"); // FAILS << ---- Error in the above case is: Disconnected from the target VM, address: '127.0.0.1:51356', transport: 'socket' org.rosuda.REngine.REngineException: eval fa...
2017 Oct 26
3
How to create a table structure in Java code?
...XP rResponseObject = rConnection.parseAndEval("try(eval("+tableRead+"),silent=TRUE)"); >> if (rResponseObject.inherits("try-error")) >> { >> System.out.println("R Serve Eval Exception : "+rResponseObject.asString()); >> } >> REXP boxMResult = rConnection.eval("boxM("+ tableRead+ "[,-5]," + tableRead + "[, 5])"); // FAILS << >> --------------------------------------------------------------- >> >> Error in the above case is: >> Disconnected from the target VM, address: '127...
2017 Oct 29
0
Renjin?
...gt; > work. > > > > Of course I'm missing something. > > Although I'm telling the engine to require ("biotools") just like I > > would in R itself, when I get to the line of code that does the > > actual call > > > > engine.eval("boxMResult <- boxM(inputIris [,-5], inputIris[,5])"); > > Then, I get: > > Exception in thread "main" org.renjin.eval.EvalException: could not > > find function 'boxM' > > > > Am I using Renjin as intended? Biotools is installed in R and works > >...
2017 Oct 26
0
How to create a table structure in Java code?
...ing... > REXP rResponseObject = rConnection.parseAndEval("try(eval("+tableRead+"),silent=TRUE)"); > if (rResponseObject.inherits("try-error")) > { > System.out.println("R Serve Eval Exception : "+rResponseObject.asString()); > } > REXP boxMResult = rConnection.eval("boxM("+ tableRead+ "[,-5]," + tableRead + "[, 5])"); // FAILS << > > ---- > > Error in the above case is: > > Disconnected from the target VM, address: '127.0.0.1:51356', transport: 'socket' > org.rosud...
2017 Oct 27
0
How to do a "Box's M" Test with
...> > Here's the setup code: > > REXP myDf = REXP.createDataFrame(new RList( > new REXP[] > { > new REXPDouble(d1), > new REXPDouble(d2), > new REXPDouble(d3), > new REXPDouble(d4), > new REXPInteger(d5) > })); > > Here's the call: > > REXP boxMResult = rConnection.eval( "boxM(" + myDf+ "[,-5], " + myDf + " [, 5])"); I don't really know the R Java interface, but this doesn't make sense. You are pasting an REXP object myDf into a string to evaluate. It would make sense to assign that dataframe object to a...
2017 Oct 26
0
How to create a table structure in Java code?
...rConnection.parseAndEval("try(eval("+tableRead+"),silent=TRUE)"); >>> if (rResponseObject.inherits("try-error")) >>> { >>> System.out.println("R Serve Eval Exception : "+rResponseObject.asString()); >>> } >>> REXP boxMResult = rConnection.eval("boxM("+ tableRead+ "[,-5]," + tableRead + "[, 5])"); // FAILS << >>> --------------------------------------------------------------- >>> >>> Error in the above case is: >>> Disconnected from the target VM,...