Thanks Icn for pointing that out, but I don't understand it.
My use of .jcall to return a type double scalar or String worked.
My use of .jfield to get a one dimensional static array worked.
My use of .jfield to get a static scalar constant did not work.
My use of .jfield to get a two dimensional s
Thanks Icn for the lookup.
I appreciate your skill.
The static double field con0dbl started working for me too.
I was surprised, and checked my code carefully.
I think they corrected that in rJava.
I download and install rJava each time I use R.
Hill
--
View this message in context:
http://r.789
I don't know who to contact in the management of this R-forum,
and there are a few things I cannot figure out.
As I understand it, to participate and learn on the R-forum,
I must receive all the emails even concerning topics I have no
interest in currently. It clogs up my email, takes a long
time
Thanks for your two suggestions.
I am too much of a beginner in R and R-forum to
be able to do either of them.
How do I/
Sorry.
--
View this message in context:
http://r.789695.n4.nabble.com/Using-Java-methods-in-R-tp3469299p3479255.html
Sent from the R help mailing list archive at Nabble.com.
H do I obtain a strictly rectangular
type-double array (converted to an R 2-dimensional array) from a Java class?
I can obtain a 1-dimensional type-double array (vector) or a scalar,
but I cannot figure out the two-dimensional from the instructions.
Is .jevalArray also involved?
My simple Java te
I just now registered in R forum.
I use Windows because of past history of using windows.
I have been writing and using programs in java for about a decade.
I work with unequal-interval-time-series data files, 1st 5 lines like:
Title Line
CnYrMoDaHrMnScDCMQ,ColSerTit1,ColSerTit2,ColSerTit3,ColSerTi
No answer to my post,
so let's try a simpler question. Am I doing this correctly?
I have the RGui with R Console on the screen.
On rhe top pullDowns, Packages > Install Packages > USA(IA)> rJava
> library(rJava)
> .jinit()
> qsLin <- .jnew("C:/ad/j/CalqsLin")
Error in .jnew("C:/ad/j/CalqsLin") :
That's more than I can understand.
I just need help from someone who knows.
Should be a simple answer from that person.
--
View this message in context:
http://r.789695.n4.nabble.com/Using-Java-methods-in-R-tp3469299p3469882.html
Sent from the R help mailing list archive at Nabble.com.
Since it cannot find a java class that is on my disk,
is there a place I have to put it into first?
--
View this message in context:
http://r.789695.n4.nabble.com/Using-Java-methods-in-R-tp3469299p3470350.html
Sent from the R help mailing list archive at Nabble.com.
Hi Shekhar, Thank you. Right path.
Sounds good. Please help me when you discover Java interface.
Firstly, I don't know what the R symbol table is or how to do
the checking you suggest. I am really naive about R.
I want to be able to get my data in there so I can learn to use
it for my purposes.
Thanks Icn, for suggesting .jaddClassPath
I finally had time to play around and discover what you meant.
So I am one step farther than the report in the second post above:
I have the RGui with R Console on the screen.
On the top pullDowns, Packages > Install Packages > USA(IA)> rJava
> library(rJa
So I am one step farther than last time, so I am happy:
I have the RGui with R Console on the screen.
On the top pullDowns, Packages > Install Packages > USA(IA)> rJava
> library(rJava)
> .jinit()
> .jaddClassPath("C:/ad/j")
> print(.jclassPath())
[1] "C:\\Users\\ENVY17\\Documents\\R\\win-library\
I added this R code to the bottom of the previous code and it doesn't work
> ar34Ret <- .jcall(qsLin,returnSig="[[D","arReturnTEST")
> print(ar34Ret,digits=20)
[[1]]
[1] "Java-Array-Object[D:[D@8813f2"
[[2]]
[1] "Java-Array-Object[D:[D@1d58aae"
[[3]]
[1] "Java-Array-Object[D:[D@83cc67"
> for(i
So the first few posts show that I found out how to
get Java functions to return type double numbers to R.
The arrays are still a problem.
Here is another of my attempts to understand how to get java arrays into R.
The Java code in class CalqsLin for an array
of constants named conArr and for a
It looks to me like the index range starts at 1 in R.
Is this true?
If so, is there a way to change it to start at 0?
That way, I wouldn't have to make so many
changes when I translate a function from
another language.
--
View this message in context:
http://www.nabble.com/index-range-tp15550797
: rfc822;r-h...@r-proj.org
Final-Recipient: rfc822;r-h...@r-proj.org
Action: failed
Status: 5.1.2
-- Forwarded message --
From: hill0093 University of Minnesota
To: r-h...@r-proj.org
Cc:
Date: Mon, 28 Oct 2013 10:53:16 -0500
Subject: Fwd: Labeling with a function of the scale value of
16 matches
Mail list logo