search for: rexpdoubl

Displaying 14 results from an estimated 14 matches for "rexpdoubl".

Did you mean: rexpdouble
2017 Oct 27
2
How to do a "Box's M" Test with
Trying to get past a frustrating error to do a "simple" Box'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 d...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...iris) boxM(iris[, -5], iris[, 5]) ------- Now, in the debugger, the built values of myDf are these: myDf = {org.rosuda.REngine.REXPGenericVector at 562} "org.rosuda.REngine.REXPGenericVector at 17d99928+[5]? ? payload = {org.rosuda.REngine.RList at 566} size = 5 ? 0 = {org.rosuda.REngine.REXPDouble at 570} "org.rosuda.REngine.REXPDouble at 6fffcba5[150]" ? 1 = {org.rosuda.REngine.REXPDouble at 571} "org.rosuda.REngine.REXPDouble at 34340fab[150]? ? 2 = {org.rosuda.REngine.REXPDouble at 572} "org.rosuda.REngine.REXPDouble at 2aafb23c[150]" ? 3 = {org.rosuda.REngine.RE...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...; double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); int[] d5 = ((REXPVector) ((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 r...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...et(2)).asDoubles(); > double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); > *int**[] d5 = ((REXPVector) ((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...
2017 Oct 29
2
Cannot Compute Box's M (Three Days Trying...)
...(); >> double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); >> int*[] d5 = ((REXPVector) ((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? >...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...> ** > Now, in the debugger, the built values of myDf are these: > > *myDf* = {org.rosuda.REngine.REXPGenericVector at 562} > "org.rosuda.REngine.*REXPGenericVector*@17d99928+[5]? > > ? payload = {org.rosuda.REngine.*RList*@566} size = 5 > ? 0 = {org.rosuda.REngine.REXPDouble at 570} > "org.rosuda.REngine.*REXPDouble*@6fffcba5[150]" > ? 1 = {org.rosuda.REngine.REXPDouble at 571} > "org.rosuda.REngine.*REXPDouble*@34340fab[150]? > ? 2 = {org.rosuda.REngine.REXPDouble at 572} > "org.rosuda.REngine.*REXPDouble*@2aafb23c[150]" &gt...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...)).asDoubles(); >> double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); >> String[] d5 = ((REXPVector) ((RList) tableRead).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 variabl...
2017 Oct 29
0
Cannot Compute Box's M (Three Days Trying...)
...((RList) tableRead).get(3)).asDoubles(); >> /int/*[] d5 = ((REXPVector) ((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. >>...
2017 Oct 27
4
Cannot Compute Box's M (Three Days Trying...)
...double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); String[] d5 = ((REXPVector) ((RList) tableRead).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], bo...
2017 Oct 27
0
How to do a "Box's M" Test with
...rote: > Trying to get past a frustrating error to do a "simple" Box'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])"); I don't really know th...
2017 Oct 26
1
How to create a table structure in Java code?
Thanks! I just figured it out (thanks to "Beyond Compare") and was coming here to post back. The boxM test doesn't work with that (now, finally working) REXP structure, but I probably now need to create a table or something and parse that structure. So much fun! :) Thanks again. - M Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email. > --------
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
...) tableRead).get(2)).asDoubles(); > double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); > String[] d5 = ((REXPVector) ((RList) tableRead).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 bo...
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
...t) tableRead).get(2)).asDoubles(); > double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); > String[] d5 = ((REXPVector) ((RList) tableRead).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...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); >> String[] d5 = ((REXPVector) ((RList) tableRead).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); >> //...