Skip to content
Prev 54285 / 63424 Next

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 IRIS dataset as the Box's M documentation shows in biotools:

Examples

data(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.REXPDouble at 573} "org.rosuda.REngine.REXPDouble at 2b80d80f[150]?
? 4 = {org.rosuda.REngine.REXPString at 574} "org.rosuda.REngine.REXPString at 3ab39c39[150]?

Does this help?

Please let me know what else I can try.

Thanks,

Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email.
Message-ID: <rl0BFmHLQl4yweaOtoWaJJEScu0VetftcUuusTtgU1qjAdU-8pgrnohMfnzvJQZTY2jPjjraq6xgDDAlxfHHZunKbfGydZILJQ8xk4g0IWc=@protonmail.com>
In-Reply-To: <abfb1feb-1da9-8c88-ceb5-98cef28ef406@gmail.com>