Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-28 Thread Duncan Murdoch
On 28/10/2017 8:59 AM, Morkus wrote: Hey Duncan, Hard to debug? That's an understatement. Eyes bleeding In any case, I tried all your suggestions. To get "integer" for the final column, I had to change the code to get integers instead of strings. The last column in iris is actually a fac

Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-28 Thread Morkus via R-devel
Hey Duncan, Hard to debug? That's an understatement. Eyes bleeding In any case, I tried all your suggestions. To get "integer" for the final column, I had to change the code to get integers instead of strings. double[] d1 = ((REXPVector) ((RList) tableRead).get(0)).asDoubles(); double[] d2

Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-28 Thread Duncan Murdoch
On 28/10/2017 7:12 AM, Morkus wrote: Thanks Duncan. Awesome ideas! I think we're getting closer! I tried what you suggested and got a possibly better error... . . . rConnection.assign("boxMVariable", myDf); *String resultBV *= *"str(boxMVariable)"*; *// your suggestion.* *RESULTING ERROR:* *

Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-28 Thread Morkus via R-devel
Thanks Duncan. Awesome ideas! I think we're getting closer! I tried what you suggested and got a possibly better error... . . . rConnection.assign("boxMVariable", myDf); String resultBV = "str(boxMVariable)"; // your suggestion. RESULTING ERROR: Error in format.default(nam.ob, width = max(nc

Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-28 Thread Duncan Murdoch
On 28/10/2017 6:26 AM, Morkus wrote: I'm not sure what you mean. Could you please be more specific? You were trying to eval an expression that you constructed in Java. I was suggesting that before you eval it, you print it. If I print the string, I get: *boxM(boxMVariable[, -5], boxMVariabl

Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-28 Thread Morkus via R-devel
I'm not sure what you mean. Could you please be more specific? If I print the string, I get: boxM(boxMVariable[, -5], boxMVariable[, 5]) >From this code: . . . // assign the data to a variable.rConnection.assign("boxMVariable", myDf); // create a string command with that variable name.String bo

Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-28 Thread Morkus via R-devel
Hi Bill, Thanks for catching that. However, the problem remains. If I use R debugging code with the rResponseObject below, I get a maybe better error, but it still doesn't make sense. This is the actual error R is throwing: Error in `[.data.frame`(boxMVariable, , -5) : undefined columns select