Displaying 12 results from an estimated 12 matches for "jarray".
Did you mean:
array
2012 Aug 09
4
debug vs regular mode
Dear all,
I had a R segmentation fault, and then invoked debug mode and ran step
by step.
When I reached "terms(Y~X1*X2*...*X16)", I would then have
"segmentation" fault. However, if I just ran this under regular "R
interactive" mode, it would be fine though taking long time.
My questions are:
1. Is there a known limit of terms for a formula?
2. Why does the
2012 Aug 09
4
debug vs regular mode
Dear all,
I had a R segmentation fault, and then invoked debug mode and ran step
by step.
When I reached "terms(Y~X1*X2*...*X16)", I would then have
"segmentation" fault. However, if I just ran this under regular "R
interactive" mode, it would be fine though taking long time.
My questions are:
1. Is there a known limit of terms for a formula?
2. Why does the
2016 Jul 26
3
Exportar datos en formato de Excel
...uál...
>
> 2016-07-26 13:46 GMT+02:00 Alexa Aristizabal <
> alexa.aristizabal06 en gmail.com>
> :
>
> > Hola Javier, de antemano muchas gracias por tu ayuda! :)
> >
> > He intentado replicar tu script pero sale el siguiente error:
> >
> > Error in .jarray(v) :
> > Java Exception <no description because toString() failed>.jarray(v)<S4
> > object of class "jobjRef">
> > > saveWorkbook(exc)
> > Error in .jcheck() :
> > Java Exception <no description because toString()
> > failed>.jc...
2015 Dec 15
2
How to efficiently share data (a dataframe) between R and Java
Dear all,
thank you for your hints. I would prefer to do not use Rserve as Dirk
mentioned.
@Simon
I have full control over the Java implementation - I can adapt the code
that I use for the communication R <-> Java.
> You can natively access structures on each side. The fastest way is to
> use R representation (column-oriented) in Java - that is much faster
> than any kind of
2008 Feb 19
1
rJava and matrices
...put to some java code, but I seem to be
unable to do this (See code below). When searching online for a solution I
found that rJava 0.5-2 (the version under development not yet in CRAN) is
adding "direct support for raw vectors as method parameters". Is this
related?
I also tried to use .jarray / .jcast in various combinations to no avail.
The only way I can think of to solve this is to modify the java code to
allow me to upload a row of the matrix one at a time.
Any other ideas?
> require(rJava);
Loading required package: rJava
> t = rbind(c(1,2,3),c(2,3,4),c(1,2,10));
> .jin...
2015 Dec 15
0
How to efficiently share data (a dataframe) between R and Java
You can pass the entire df, example:
> data(iris)
> iris$sp = as.character(iris$Species)
> o=.jarray(lapply(iris, .jarray))
> .jcall("C",,"df",o)
df, 6 variables
[0]: double[150]
[1]: double[150]
[2]: double[150]
[3]: double[150]
[4]: int[150]
[5]: String[150]
Java code:
public class C {
static void df(Object df[]) {
int n;
System.out.pr...
2010 Dec 28
1
rJava question
...m R to java
and back
using rJava, but this method is not documented and I wonder if there is a
better way?
Anyway, here is what I found works:
(m = matrix(as.double(1:12),3,4))
[shows m as you would expect]
jtest <- .jnew("JTest")
(v <- .jcall(jtest, '[[D], 'myfunc', .jarray(m), evalArray=FALSE))
[shows v = m + 10]
Here the JTest class has a method named myfunc that accepts
a double[][] and returns a double[][]. It simply adds 10 to every
element.
The parameter 'evalArray' is confusing because when
evalArray=TRUE the result is NOT evaluated (a list is returne...
2016 Jul 26
7
Exportar datos en formato de Excel
Buenos días a todos!
Estoy trabajando con una base de datos que directamente he descargado de
internet y después de prepararla un poco necesito exportarla a Excel he
intentando con las dos opciones que mencionaré al final pero ninguna
funciona, de qué otra manera puedo exportar esos datos a Excel... muchas
gracias por su ayuda y pronta respuesta!
1)
library(xlsx)
library(rJava)
2013 Jan 16
1
How to call Java main method using rJava package?
Hi,
I am trying to integrate my Java program with R using rJava package. I want
to execute the whole Java program from R. The main() method in my Java code
calls all the other defined methods. So, I guess I have to call the main()
method in .jcall.
An example Java code:
*class A {
public static int mySum(int x, int y) {
return x+y;
}
public static void
2006 Apr 15
2
cannot load rJava in R
...hared -L/usr/local/lib -o rJava.so callJNI.o initJNI.o Rglue.o rJava.o -L -ljvm -L/usr/local/lib/R/lib -lR
** R
** help
>>> Building/Updating help pages for package 'rJava'
Formats: text html latex example
accessOp text html latex example
jarray text html latex example
jarrayRef-class text html latex
jcall text html latex example
jcast text html latex example
jfloat-class text ht...
2007 Jan 31
0
Fwd: Unable to load rJava - Undefined Symbol GetCreatedJavaVMs
...e[1]: Leaving directory `/tmp/R.INSTALL.G32323/rJava/jri'
** R
** inst
** preparing package for lazy loading
** help
>>> Building/Updating help pages for package 'rJava'
Formats: text html latex example
accessOp text html latex example
jarray text html latex example
jarrayRef-class text html latex
jcall text html latex example
jcast text html latex example
jcastToArray text ht...
2009 Jul 15
2
rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny
...:786: error: ?env? undeclared (first use in this function)
Rglue.c:793: error: ?jbyteArray? undeclared (first use in this function)
Rglue.c:793: error: expected ?;? before ?a?
Rglue.c:794: error: ?a? undeclared (first use in this function)
Rglue.c:795: warning: implicit declaration of function ?new_jarrayRef?
Rglue.c:795: warning: return makes pointer from integer without a cast
Rglue.c:797: error: ?jcharArray? undeclared (first use in this function)
Rglue.c:797: error: expected ?;? before ?a?
Rglue.c:799: warning: return makes pointer from integer without a cast
Rglue.c:801: error: ?jintArray? unde...