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")
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
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
>>
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
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
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
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
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
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
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
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
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
"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
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
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
15 matches
Mail list logo