similar to: R object code

Displaying 20 results from an estimated 7000 matches similar to: "R object code"

2006 Sep 08
2
Complete documentation gram.y ??
Hi everybody, Does anybody know where I can find documentation about file gram.y?. What I need to do is related to the parse tree. I need the parse tree of a R user defined function for being used by a c++ function. Briefly, I have a C++ function that is used to generate random numbers from a specified objective function and I want to use R just to verified the sintaxis of the function and I
2006 Sep 28
1
eval(SEXP fn,SEXP rho) in C++ code
Hi r-devel, I am working on a R extension. I am writing the function in C++, and in my function it is required a R function object from the user. This R function object will be evaluated thousand of times in my C++ code. I generated the shared library and I loaded it on R. I did several experiments in order to compare the speed of my compiled code vs the speed of the equivalent interpreted code.
2006 Sep 14
0
Evaluating R expresions from C
Good afternood everybody, I have a question about using "Rinternals.h": If I need to evaluate a R expresion from my c++ code Do I have to change my c++ code enterelly?, I'm thinking about the way I allocate memory and the way I print for example. Thanks for any help in advance. Patricia ___________________________________________________________ Do You Yahoo!? La mejor
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"); ...
2010 Nov 08
2
Rserve alternative?
The Rserve documentation at http://rosuda.org/Rserve/doc.shtml#start states that even when making multiple connections to the Rserve, Windows won't separate workspaces physically and share environments, which will obviously cause problems and should therefore not be used. Are there any alternatives for the windows platform? Ralf
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 =
2007 Dec 30
1
some questions about startup Rserve
I realize the communication between R and Java with Rserve in my dissertation, but i can not run the Rserve by double click of Rserve.exe, and also i can't realize backstage running of Rserve by technique of Multi-thread in Java. Can anyone tell me why? So, before i run the Java, i must run the R manually, then input "Rserve()" or "system("Rserve")". This
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
2005 Apr 29
4
Calling R functions from Java
Hey guys, I got a java gui app which loads up data into a table. How can i use R to perform statistical functions on the data in the table? P.S My question is not particularly geared towards Java coding, but more towards allowing R functionality within Java.
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
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 =
2007 Aug 11
1
RServe
Hi all, is there a way to properly terminate Rserve instead of killing the process? I run Rserve in a linux box that serves my Java client.. I have a cronjob that runs Rserve every morning. However, I'm killing it at night manually for the moment. Is there a way, given host/port, I can run an R command to properly terminate it?? Thanks a lot in advance!! - yoooooooo -- View this message in
2010 Jul 19
1
Non-blocking Eval
Hello, I'm currently working with the C++ version of the Rserve Client as part of a student project. Is there an implementation of a non-blocking interface to Rserve in C++? I can find one via the Java JRI but no equivalent in C++. Thanks _________________________________________________________________ Do you have a story that started on Hotmail? Tell us now [[alternative HTML
2010 Aug 20
1
Rserve (Anyone?)
REXP has an asBytes() method. Will this capture the output of an R plot function if a proper graphics device is used? It appears R insists on sending plot output to a file. Kind of strange since it insists on loading all your data into memory before it can do anything. If so then does anyone know what this would be? I prefer png or jpeg. Example: c is an RConnection REXP r =
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
2005 Aug 22
1
Fetching Warning Messages
Hi, I am facing one problem of fetching R warning messages in Java Code using Rserve. It is easier to trap R Error messages by using catching RSrvException. I came to know one way of fetching R Warning messages, i.e. using "withCallingHandlers", below is my Java Program, which uses withCallingHandlers of R : import org.rosuda.JRclient.*;
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
2010 Sep 06
1
RJava
hello I am having the same problem published in https://stat.ethz.ch/pipermail/r-help/2008-July/167191.html but I haven't seen the solution Could some body helpme thank you so much LEIDY [[alternative HTML version deleted]]
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])";
2023 Nov 21
1
Cambiar el intervalo de confianza en un anova
Buenas, En R, como en la mayoría del software estadístico, no se utiliza ningún nivel de confianza sino que lo que se calcula es el p-valor asociado al contraste. De forma que cuanto más cerca de 0 esté el p-valor "menos credibilidad le damos a la hipótesis nula". Dicho mejor, debemos rechazar la hipótesis nula si el p-valor está por debajo de nuestro nivel de confianza. Por ejemplo,