search for: boxmvari

Displaying 11 results from an estimated 11 matches for "boxmvari".

2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...XPVector) ((RList) tableRead).get(4)).asIntegers(); // create data frame with data.REXP myDf = REXP.createDataFrame(new RList( new REXP[] { new REXPDouble(d1), new REXPDouble(d2), new REXPDouble(d3), new REXPDouble(d4), new REXPInteger(d5) })); Here are the results from the eval debug code. head(boxMVariable) ? Gives the high level 5 objects. typeof(boxMVariable): ?list? class(boxMVariable) : ?data.frame? names(boxMVariable) ? String object returned (couldn't evaluate it) ncol(boxMVariable) - 5 nrow(boxMVariable) - 150 typeof(boxMVariable) for (i in 1:5) print(typeof(boxMVariable[[i...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
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(ncn), justify = "left") : invalid 'width' argument (No idea what this means). For testing, I'm using the same standard IR...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...me with data. > /REXP myDf = REXP.createDataFrame(new RList( > new REXP[] > { > new REXPDouble(d1), > new REXPDouble(d2), > new REXPDouble(d3), > new REXPDouble(d4), > *new **REXPInteger(d5)* > })); > > Here are the results from the eval debug code. > > head(boxMVariable)? ? Gives the high level 5 objects. > > typeof(boxMVariable): ?list? > > class(boxMVariable) : ?data.frame? > > names(boxMVariable)? ? String object returned (couldn't evaluate it) That sounds like it could be serious. Dataframe names shouldn't be particularly co...
2017 Oct 29
2
Cannot Compute Box's M (Three Days Trying...)
...yDf = REXP.createDataFrame(new RList( >> new REXP[] >> { >> new REXPDouble(d1), >> new REXPDouble(d2), >> new REXPDouble(d3), >> new REXPDouble(d4), >> *new *REXPInteger(d5) >> })); >> Here are the results from the eval debug code. >> head(boxMVariable) ? Gives the high level 5 objects. >> typeof(boxMVariable): ?list? >> class(boxMVariable) : ?data.frame? >> names(boxMVariable) ? String object returned (couldn't evaluate it) >> >> That sounds like it could be serious. Dataframe names shouldn't be >&g...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
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:* > > *Error in format.default(nam.ob, width = max(ncn), justify = "left") : > invalid 'width' argument* > > (No idea what this me...
2017 Oct 29
0
Cannot Compute Box's M (Three Days Trying...)
...> new REXP[] >> { >> new REXPDouble(d1), >> new REXPDouble(d2), >> new REXPDouble(d3), >> new REXPDouble(d4), >> *new */REXPInteger(d5)/ >> })); >> Here are the results from the eval debug code. >> head(boxMVariable)? ? Gives the high level 5 objects. >> typeof(boxMVariable): ?list? >> class(boxMVariable) : ?data.frame? >> names(boxMVariable)? ? String object returned (couldn't evaluate it) >> >> That sounds like it could be serious. Dataframe names shouldn...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
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 boxVariable = "boxM(boxMVariable[, -5], boxMVariable[, 5])"; System.out.println(boxVariable...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
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], boxMVariable[, 5])* Right, that's what I was suggesting you do. Now you've fixed the syntax error, that looks okay. If I'm reading these messages in the right order, your latest error is Error in `[.data.frame`(boxMVariable, , -5) : undefined columns selected The expr...
2017 Oct 27
4
Cannot Compute Box's M (Three Days Trying...)
...ableRead).get(4)).asStrings(); // create data frame with data.REXP myDf = REXP.createDataFrame(new RList( new REXP[] { new REXPDouble(d1), new REXPDouble(d2), new REXPDouble(d3), new REXPDouble(d4), new REXPString(d5) })); // assign the data to a variable as was suggested.rConnection.assign("boxMVariable", myDf); // create a string command with that variable name.String boxVariable = "boxM(boxMVariable [,-5], boxMVariable[,5]"; // try to execute the command... // FAILS with org.rosuda.REngine.Rserve.RserveException: eval failed, request status: R parser: input incomplete>&gt...
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
Does it work if you supply the closing parenthesis on the call to boxM? The parser says the input is incomplete and a missing closing parenthesis would cause that error.. // create a string command with that variable name.String boxVariable = "boxM(boxMVariable [,-5], boxMVariable[,5]"; // try to execute the command... // FAILS with org.rosuda.REngine.Rserve.RserveException: eval failed, request status: R parser: input incomplete>>>> FAILS ! >>>> REXP theBoxMResult = rConnection.eval(boxVariable); <<<< FAI...
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
...me with data.REXP myDf = REXP.createDataFrame(new RList( > new REXP[] > { > new REXPDouble(d1), > new REXPDouble(d2), > new REXPDouble(d3), > new REXPDouble(d4), > new REXPString(d5) > })); > > // assign the data to a variable as was suggested.rConnection.assign("boxMVariable", myDf); > > // create a string command with that variable name.String boxVariable = "boxM(boxMVariable [,-5], boxMVariable[,5]"; > > // try to execute the command... > // FAILS with org.rosuda.REngine.Rserve.RserveException: eval failed, request status: R parser...