Displaying 20 results from an estimated 200 matches similar to: "Using JRclient in java application"
2009 Jun 12
0
JRclient.RSrvException Exception: Handshake
Hi all,
first of all: Sorry for my bad englis, and now the Question:
I have some problems with running R from Java. First i tried using rJava (JRI). But the examples didnt work properly.
Now im trying to establish a connection by using Rserve and JRclient (RF503).
I have the following code, which i`ve found:
------------------------------------------------------------------------
public
2006 Jul 09
0
help on executing JRClient examples
Dear All,
I've installed Rserve and I've met in the bin directory of R and I've runn it and it appears //ready to answer the querie// and i've installed the Jrclient and I've put it on the desktop in the directory Jrclient and i've installed JDK and sur I'have the R language.
Now when I compile the Jrclient exeamples : I've opened the concole commande and I
2008 Jul 02
1
Extracting regression coef. and p-values in JRClient
Hi there,
I am using JRClient to build logistic regression model in the
following manner :
Rconnection c = new Rconnection();
c.eval("KSN<-read.table(\"/Users/amine/Documents/Research/
Tools/R/D2R1.txt\",header=T,sep=\",\")");
c.eval("result <- glm(Nausea ~ Kaletra*Sustiva, family =
binomial(link = logit), data =KSN)");
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.*;
2007 May 20
0
Problems accessing Rconnect
Hi. I nearly have Rserve working....
I have the dialog box which says..
Rserve: Ok, read to answer queries.
Having read all i can find, I followed the guidance given on
http://rosuda.org/Rserve/example.shtml
I tried to follow the first example but I am getting an error descirbed
below. My IDE looks like this:
http://www.nabble.com/file/p10705244/ide.jpg
However, when I try and compile my
2017 Aug 22
1
Error in .jnew(“java/io/FileOutputStream”, jFile)
I don't know R absolutely, but I have to do this work for my diploma. So I'm sorry for strange message below. Please, help me anybody decides this issue.
If you need any information, I'll show you all what you need.
**error**:<br>
> #save
> #csv
>file.create("C:\\Users\\Sapl\\Desktop\\NATA\\code\\Results\\Created by R\\ab_ret_banks_short_form_10.05.2006.csv")
2004 Oct 22
1
p-values for the dip test
Hi all,
I am using Hartigan & Hartigan's [1] "dip test" of unimodality via the
diptest package in R. The function dip() returns the value of the test
statistic but I am having problems calculating the p-value associated with
that value. I'm hoping someone here is familiar with this process and can
explain it.
In the original article there is an example using n=63 and a
2008 Sep 11
0
Help on executing R from java
Hello,
I've installed Rserve and
I've run it.
I've
installed the JRclient-RF503.jar.
I've installed JDK 1.4.2 and R language version 2.7.1.
Now when I compile the Jrclient exeamples from JBUILDER 9? an error appreas: package org.rosuda.JRclient does not exist ...
could you please help me?
Thank you in advance
[[alternative HTML version deleted]]
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
Hi guys
I have tried compiling this attached code, I made all the buffers 320, there is no trace of a 160 buffer, but I get a "
SpeexEncoder requires 320 samples to process a Frame, not 160" error.
Maybe there's something I'm missing, here's my code:
import java.io.IOException;
import java.io.FileOutputStream;
import java.io.File;
import
2012 Aug 12
0
Index Values in NbClust
Dear All,i applied "NbClust", to my data to find optimum number of clusters, and got following resultsNow, i don't know how to read these results. more precisely, i would like to know, how to see which method is more precise for my data considering these index values.your help is needed...thanks in advance
Eliza Botto
> dput(Eliza)structure(list(All.index = structure(c(2, 3, 4, 5,
2012 Jan 14
1
Error: unexpected '<' in "<" when modifying existing functions
Hi.
I am trying to modify kmeans function.
It seems that is failing something obvious with the workspace.
I am a newbie and here is my code:
myk = function (x, centers, iter.max = 10, nstart = 1, algorithm =
c("Hartigan-Wong",
+ "Lloyd", "Forgy", "MacQueen"))
+ {
+ do_one <- function(nmeth) {
+ Z <- switch(nmeth, {
+ Z
2009 Aug 31
3
Two way joining vs heatmap
Hi
STATISTICA has a function called "Two-way joining" (see
http://www.statsoft.com/TEXTBOOK/stcluan.html#twotwo) and the
reference material states that this is based on the method as
published by Hartigan (found this paper:
http://www.jstor.org/pss/2284710 through wikipedia).
What is the relationship (if any) between the "heatmap" function in R
and this technique? Is there an
2014 Jan 26
2
[LLVMdev] [llmdev] fail to process llvm generated assembly on windows/mingw32
Hello guys,
I'm using llvm 3.3 on windows with mingw (triple: "i386-unknown-mingw32")
to compile IR code that my
program generates.
I do it in two phases: first I emit assembly code and then assemble it.
TargetMachine targetMachine =
target.createTargetMachine(triple);
targetMachine.setAsmVerbosityDefault(true);
targetMachine.setFunctionSections(true);
2009 Dec 11
1
cluster size
hi r-help,
i am doing kmeans clustering in stats. i tried for five clusters clustering using:
kcl1 <- kmeans(as1[,c("contlife","somlife","agglife","sexlife",
"rellife","hordlife","doutlife","symtlife","washlife",
2008 Sep 09
1
passing graph image data from remote Rserve
Hello,
I am using Rserve to create a dedicated computational back-engine. I
generate and pass an array of data to a java application on a separate
server. I was wondering if the same is possible for an image. I believe
that Rserve supports passing certain R objects and JRclient can cast
these objects into their Java counterparts. If I generate a barplot in R
(remotely), can I pass the graph
2013 Feb 03
1
Empty cluster / segfault using vanilla kmeans with version 2.15.2
Dear experts,
I am encountering a version-dependent issue.
My laptop runs Ubuntu 12.04 LTS 64-bit, R 2.14.1; the issue explained below
never occurred with this version of R
My desktop runs Ubuntu 11.10 64-bit, R 2.13.2; what follows applies to this
setup.
The data I'm clustering is constituted by the rows of a 320 x 6 matrix
containing integers ranging from 1 to 7, no missing data.
I applied
2017 Jun 06
2
Philosophy behind converting Fortran to C for use in R
Hello.
This is not a question about a bug or even best practices; rather I'm
trying to understand the philosophy or theory as to why certain
portions of the R codebase are written as they are. If this question
is better posed elsewhere, please point me in the proper direction.
In the thread about the issues with the Tukey line, Martin said [1]:
> when this topic came up last (for me) in
2007 Jul 04
0
Kmeans performance difference
Hi All,
A question from a newbie using R 2-5-0 on windows XP. Why is it that
kmeans clustering with apparently the exact same parameters behaves so
differently between the two following examples :
> cl1 <- kmeans(subset(pointsUXO15555, select = c(2:4)), 10)
Takes about 2 seconds to deliver a result
> cl1 <- clust(subset(pointsUXO15555, select = c(2:4)), k=10,
2017 Jun 06
0
Philosophy behind converting Fortran to C for use in R
Here are three reasons for converting Fortran code, especially older
Fortran code, to C:
1. The C-Fortran interface is not standardized. Various Fortran compilers
pass logical and character arguments in various ways. Various Fortran
compilers mangle function and common block names in variousl ways. You can
avoid that problem by restricting R to using a certain Fortran compiler,
but that can
2013 Mar 13
1
Empty cluster / segfault using vanilla kmeans with version 2.15.2
Hello,
here is a working reproducible example which crashes R using kmeans or
gives empty clusters using the nstart option with R 15.2.
library(cluster)
kmeans(ruspini,4)
kmeans(ruspini,4,nstart=2)
kmeans(ruspini,4,nstart=4)
kmeans(ruspini,4,nstart=10)
?kmeans
either we got empty always clusters and or, after some further commands
an segfault.
regards,
Detlef Groth
------------
[R] Empty