Displaying 20 results from an estimated 800 matches similar to: "RJava"
2017 Oct 28
2
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
2008 Nov 30
1
Rserve and creating a list of lists
Hello,
I have some code which generates lattice objects. The function
recieves serialized forms of the lattice objects which it then
unserializes and then adds to an ArrayList<REXP>.
REXPRaw rser = new REXPRaw( target ); //target contains the raw
serialized forms of lattice objects
rconn.assign("temp",rser);
REXP ret =
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
Hey Duncan,
Hard to debug? That's an understatement. Eyes bleeding....
In any case, I tried all your suggestions. To get "integer" for the final column, I had to change the code to get integers instead of strings.
double[] d1 = ((REXPVector) ((RList) tableRead).get(0)).asDoubles();
double[] d2 = ((REXPVector) ((RList) tableRead).get(1)).asDoubles();
double[] d3 = ((REXPVector)
2017 Oct 25
2
How to create a table structure in Java code?
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 (sample IRIS) data, say, in a web service possibly POSTED from a SQL command, that same
2017 Oct 26
3
How to create a table structure in Java code?
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 variable first, then it fails again with a parse error.
Code below.
So, if I read the CSV into a variable, do I need an additional wrapper method?
Seems like it should still work.
Thanks in advance for your reply.
-M
String inputIris =
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
I'm not sure what you mean. Could you please be more specific?
If I print the string, I get: boxM(boxMVariable[, -5], boxMVariable[, 5])
From this code:
.
.
.
// assign the data to a variable.rConnection.assign("boxMVariable", myDf);
// create a string command with that variable name.String boxVariable = "boxM(boxMVariable[, -5], boxMVariable[, 5])";
2009 Mar 19
4
Import R-output into Java
Hello,
I want to import R-output via Rserve to Java, especially for the function
ctree from the package party.
Rserve is working properly.
Yet, I only get the predictions with the Java code
try{
RConnection c = new RConnection();
...
c.voidEval("modell <- ctree(...)");
REXP y = c.eval("nodes(modell,1)[[1]]$prediction");
...
2017 Oct 29
2
Cannot Compute Box's M (Three Days Trying...)
Thanks Duncan. I can't tell you how helpful all your terrific replies have been.
I think the biggest surprise is that nobody appears to be using Java and R together like I"m trying to do. I suppose it should be a surprise since there are no books on the subject and almost no technical documentation other than a few sites here and there.
-----
I originally had the "int" as the
2012 Jun 27
1
rJava Error
Hi,
I'm receiving an error when I am trying to install rJava. I have posted the
error below.
RHive_0.0-6.tar.gz rJava_0.9-3.tar.gz RJDBC_0.2-0.tar.gz
Rserve_0.6-8.tar.gz
[root at localhost Package]# R CMD INSTALL rJava_0.9-3.tar.gz
* installing to library ?/usr/local/lib64/R/library?
* installing *source* package ?rJava? ...
** package ?rJava? successfully unpacked and MD5 sums checked
2011 Jan 04
1
an error about JRI
Hi everyone, I try to run my R script in Java, thus I installed JRI. and run
the example, I am using Eclipse on 64 bits windows 7. part of the example
code is as follows:
public static void main(String[] args) {
System.out.println("Creating Rengine (with arguments)");
Rengine re=new Rengine(args, false, null);
System.out.println("Rengine
2008 Jun 02
2
Problemas usando jri0.4-1 y R 2.7.0
Hola, es la primera vez que mando un correo a cualquiera de las listas de
correo de R y no se si esta consulta se ajusta al próposito de la r-help
list o debería haberlo mandado a otra de las listas que hay.
Mi problema es el siguiente: Estoy desarrollando un programa en java con
llamadas a R y no puedo usar jri 0.4-1 con la version 2.7 o 2.6 de R.
Curiosamente si me funciona si uso jri 0.4 o la
2006 Sep 28
2
calling R from within Java, using jri
Hi,
I want to call R from within Java, using jri as per
http://www.rosuda.org/software/jri/
So I am following the instructions in the README file for JRI 0.2-4.
I have run 'sh configure.win' and 'make' and they seemed to be
successful.
(See below for the output from make, for example.)
But when I try 'run.bat rtest' (with and without R command line
arguments)
the output
2010 Nov 19
1
JRI and error message from R_isMethodsDispatchOn
Dear R users,
I have a small project written in Java and need some statical tools.
Therefore, I used JRI (in rJava package) as an interface between R and
Java to write some wrappers for my work. However, I received error
message from R while I have more than one java method which wraps R:
Error in .Call("R_isMethodsDispatchOn", onOff, PACKAGE = "base") :
Incorrect
2013 Feb 24
7
Help: rJava ubuntu 12.04
Hola buenas,
utlimamente estoy teniendo más problemas con mi equipo de los que debería.
Bajo windows no me funciona bien Rstudio y bajo linux soy incapaz de
instalar rJava. ¿Alguien que sepa de Linux me podría ayudar?
He probado a instalar los openJDK y nada.
También he probado, para instalar Java, a hacer un:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo
2009 Aug 03
1
RServe - How to use 'createReference' method?
I need to input a txt, or xls, file from a client to R, using RServe.
>From what I've been reading, the best way to do this, is using the
'createReference' method, from REngine package.
But I couldn't find any documents exemplifying it's use. I got to upload a
file from java? And then? How do i refeer the file to this method?
Best Regards,
J. Daniel
--
View this message
2010 Aug 20
1
R and Java
Hi folks,
Maybe that is not the best place to ask, but I 'd like some of you could
help me...
I'm using jri to run R commands under Java, by its examples I can eval
expressions, returning single values or vectors to my Java variables. But, I
would like to know how to assign the values of a Java vector (like: double
x[] = {1.7 , 2.8 , 3.4}; ) to a R variable, so I can eval a function
2020 Mar 29
1
[BULK] Re: status of Java & rJava?
Hi, Simon et al.:
????? My attempts to install rJava 0.9-12 from source failed under both
macOS 10.15.4 and Windows 10.
????? Below please find what I got just now trying "update.packages()"
and selecting "install from sources" on both computers followed by
"sessionInfo()" in each case.
????? Thanks for your help.
????? Spencer Graves
2009 Feb 28
2
Using JRI and Java 1.6 on MAC OS X
Dear R-Help,
I am trying to get JRI (the rJava interface allowing Java to connect
to R) to work. I was able to run it a week ago when I was doing some
testing using Java 1.5. However, I am developing a GUI application
using some of the new Java 1.6 features and I just can't get JRI to
work with this setup.
Here is what I get:
Cannot find JRI native library!
Please make sure that the JRI
2008 Dec 14
1
Help - java.library.path
Hello all,
I`m a computer science student from Frankfurt/main (germany).
Our student team (10 students) are working on a R/Interface project (Java
and R) and we have a problem with R and JRI.
We are working on 10 computers with Windows XP SP2, R 2.8.0, jdk1.6.0_11
and the same classpath setttings but our application works only on two
computers. We can't explain us this.
2017 Oct 27
4
Cannot Compute Box's M (Three Days Trying...)
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 coding equivalent.
The entire code snippet is below. The code fails below on the call to