[Rd] Renjin?

2017-10-29 Thread Morkus via R-devel
Hi All, OK, in the "back to the drawing board" department, I found what looks like a much better solution to using R in Java. Renjin. 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")

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

2017-10-29 Thread Morkus via R-devel
Hey Duncan, Since Java is the #1 language and R is extremely popular, I think the most telling thing is that nobody on the "R-devel" forum (where people do "programming with R") is doing R and Java like I'm doing: calling R from Java and passing data structures. So it appears I'm clearly pushi

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

2017-10-29 Thread Morkus via R-devel
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 >>

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

2017-10-28 Thread Morkus via R-devel
gt;> >>> From this code: >>> . >>> . >>> . >>> /// assign the data to a variable. >>> /rConnection.assign("boxMVariable", myDf); >>> /// create a string command with that variable name. >>> /String boxVariable = &quo

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

2017-10-28 Thread Morkus via R-devel
ProtonMail https://protonmail.com, Swiss-based encrypted email. >> >>> Original Message >>> Subject: Re: [Rd] Cannot Compute Box's M (Three Days Trying...) >>> Local Time: October 27, 2017 6:09 PM >>> UTC Time: October 27, 2017 10:09 PM

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

2017-10-28 Thread Morkus via R-devel
r-devel@r-project.org > > > Just print the string you are asking to R to evaluate. It doesn't make > any sense as an R expression. Fix that, and things will work. > > Duncan Murdoch > > On 27/10/2017 3:41 PM, Morkus via R-devel wrote: > >> It can't b

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

2017-10-28 Thread Morkus via R-devel
t incomplete>>>> FAILS ! >>>> REXP theBoxMResult = > rConnection.eval(boxVariable);<<<< FAILS <<<<< > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Fri, Oct 27, 2017 at 12:41 PM, Morkus via R-devel > wrot

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

2017-10-27 Thread Morkus via R-devel
It can't be this hard, right? I really need a shove in the right direction here. Been spinning wheels for three days. Cannot get past the errors. I'm doing something wrong, obviously, since I can easily compute the Box's M right there in RStudio But I don't see what is wrong below with the codi

Re: [Rd] How to do a "Box's M" Test with

2017-10-27 Thread Morkus via R-devel
October 27, 2017 12:50 PM > From: murdoch.dun...@gmail.com > To: Morkus , r-devel@r-project.org > > > On 27/10/2017 8:10 AM, Morkus via R-devel wrote: > >> Trying to get past a frustrating error to do a "simple" Box's M test using >> Java. >> The

[Rd] How to do a "Box's M" Test with

2017-10-27 Thread Morkus via R-devel
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), n

Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Morkus via R-devel
ALMOST THERE I have one small remaining problem. Now that I can read in the CSV data, thanks again for that help, I create a data frame from all the REXPDouble and the one REXPString object and I'm then trying to do a boxM (Box's M) test. The documentation says that a data frame should wor

Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Morkus via R-devel
he parser. > > Cheers, > Simon > >> On Oct 26, 2017, at 9:59 AM, Morkus via R-devel r-devel@r-project.org wrote: >> That's amazing! Thank you!!! >> One follow up question, if that's OK? >> If, instead of using hard-coded CSV, I read the CSV into a variabl

Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Morkus via R-devel
"5.1,3.5,1.4,0.2,setosa > 4.9,3,1.4,0.2,setosa > 4.7,3.2,1.3,0.2,setosa > 4.6,3.1,1.5,0.2,setosa > 5,3.6,1.4,0.2,setosa" > ), header = FALSE) > > HTH, > Jan > > On 25-10-17 12:50, Morkus via R-devel wrote: > >> Hi all, >> Using RConsole

[Rd] How to represent two-dimensonal data in R?

2017-10-26 Thread Morkus via R-devel
I asked this question yesterday, but since I didn't receive any responses, I thought I would simply the question a bit and try again. Basically, I'm getting a query result sent to a program. That data is just the rows and columns of a database table. Simple 2-D. My (hopefully simple) question i

[Rd] How to create a table structure in Java code?

2017-10-25 Thread Morkus via R-devel
Hi all, Using RConsole, it's easy to get data from the database that you can use in an R Command. Like this: (Reference case) irisQuery <- dbGetQuery(conn, "select * from iris") boxM(irisQuery [,-5], irisQuery[,5]) (Actual case this posting is about) Yet, if I'm getting that same (sampl