Displaying 20 results from an estimated 400 matches similar to: "Calling R from Java"
2006 Jul 07
0
Calling R from Java
Madam,
I've read your answer :
///////////////////////////////////////
Here are other alternatives that are easy to implement and that you
should consider depending on what you want to do:
1- one is to use R in batch mode ie you create a file in your java code
with all the R commands and send it to R (via Process
pc=Runtime.getRuntime().exec(Rcall); )and then R creates an
2006 Feb 15
2
Setting intial path under windows to MyComputer in Interactive file browser
Hello everyone,
How can I specify in tcltk file browser the initial directory to
"MyComputer" in Windows where Drives and Partition are accessible?
And just a little question if anyone knows, is there a way to use the
function choose.files under windows to select a directory?
Thanks a lot for your help.
Laetitia.
2006 Jul 09
0
R
Madame,
I've read your answer for using R from Java, you've sais:
one is to use R in batch mode ie you create a file in your java code
with all the R commands and send it to R (via Process
pc=Runtime.getRuntime().exec(Rcall); )and then R creates an outputfile
with all the results.
My question is how to do a process in Java and do I need to change the path of Java or R to let
2004 Feb 03
2
Prompt / Console problem
Hi,
I have R installed under a Mandrake linux system and I don't have shell
utilities any more under my R console such as completion when writing a
file path, back and forth in the history, bindkeys... Moreover when I
quit R by saving, no .Rhistory file is created while the .Rdata is. I
don't get how this work, I thought it was based on the user unix shell
but it does not seem.
Any
2003 Aug 29
3
R and pointer
Hi everyone,
I want to write a function that modify directly variables passed as
parameters (the equivalent in C language of *ptr/&ptr) so that I don't
have to return a list and to reaffect all my variables.
Is it possible to do so in R?
Thanks a lot.
Laetitia Marisa.
2004 Jul 27
1
Display on Windows console from script
Hello,
When I launch a script under windows it does not display sequentially
my cat calls or maybe the console is not refreshed at every line of my
script.
For instance with that code
cat("\n\n================== IMPORT DATA FROM FILE
===================\n\n")
fileschosen <- choose.files(caption="Select gpr files", filters =
matrix(c("genepix
2006 Jan 24
9
Number of replications of a term
Hello,
Is there a simple and fast function that returns a vector of the number
of replications for each object of a vector ?
For example :
I have a vector of IDs :
ids <- c( "ID1", "ID2", "ID2", "ID3", "ID3","ID3", "ID5")
I want the function returns the following vector where each term is the
number of replicates for the
2005 Jan 17
1
problem installing RSPython
Hi,
I'm trying to install RSPython v0.5-4 on a debian machine (woody,
testing) but am having the following problem.
$R CMD INSTALL -c --library=/usr/lib/R/library RSPython_0.5-4.tar.gz 2>err
But then...
$python
>> import RS
Error in .PythonInit() : Error in Python call: values
Error in library("RSPython") : .First.lib failed for 'RSPython'
Traceback (most recent
2008 Jul 29
1
Bug in sd() and var() in handling vectors of NA (R version 2.7.1)?
In the previous versions of R (2.6.1), when a vector of NA was given to the functions 'sd' or 'var' with parameter na.rm = TRUE, it used to return NA. Now (2.7.1) it returns an ERROR :
Example in 2.6.1:
> sd(c(NA, NA, NA, NA), na.rm = TRUE)
[1] NA
Example in 2.7.1:
> sd(c(NA, NA, NA, NA), na.rm = TRUE)
Error in var(x, na.rm = na.rm) : paires d'éléments
2006 Jan 25
0
lazy evaluation (was RE: Number of replications of a term)
From: Thomas Lumley
>
> On Wed, 25 Jan 2006, Ray Brownrigg wrote:
>
> > There's an even faster one, which nobody seems to have
> mentioned yet:
> >
> > rep(l <- rle(ids)$lengths, l)
>
> I considered this but it wasn't clear to me from the initial
> post that
> each ID occupied a contiguous section of the vector.
>
> Also, lazy
1997 Aug 21
1
R-alpha: axes & plot boundary
I don't rcall seeing this one reported before:
plot(...,axes=F)
removes not only the axes, but also the plot boundary. The 'bty'
parameter loses its effect completely. getting it back seems to
require fiddling with par("usr") and rect() or lines()
(Linux, Alpha-3)
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200
2010 Jan 11
1
apply a function down each column
Hello World,
I have a function that makes pairwise comparisons between two strings. I would like to apply this function to my data (which consists of columns with different strings) in the way that it compares the first with the second entry, and then the third with the fourth, and then the fifth with the sixth, and so on down each column...
So (2x-1) and (2x) would be the different entries to be
2016 Aug 05
1
What happened to Ross Ihaka's proposal for a Common Lisp based R successor?
But you can easily fall back to R from within Julia; see
http://juliastats.github.io/RCall.jl/latest/
On Aug 5, 2016 1:27 PM, "Hadley Wickham" <h.wickham at gmail.com> wrote:
> No.
>
> Hadley
>
> On Fri, Aug 5, 2016 at 11:12 AM, Kenny Bell <kmbell56 at gmail.com> wrote:
> > Is it conceivable that Julia could be ported to use R syntax in a way
> that
2007 Apr 02
0
[938] trunk/wxsugar/lib/wx_sugar/wx_classes: Enable enumerable_controls for ListCtrl and ControlWithItems family
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2005 Jun 04
2
glm with a distribution free family
Dear R users,
I am trying to fit a glm with a distribution free family, link = log and variance = constant*mu. I guess I have to use the quasi family but the choices of variance are restricted to constant or mu or mu^2..., I don't know the way to choose the variance that I need, i.e. constant*mu.
If you have any ideas or advice, please tell me.
Thanks,
Laetitia Mestdagh
Laetitia Mestdagh
2007 Apr 02
0
[940] trunk/wxsugar/lib/wx_sugar/wx_classes/treectrl.rb: Align #traverse usage with #each in enumerable_controls.rb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Apr 02
0
[937] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Initial commit of enumerable_controls.rb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2010 Jan 09
3
string functions
Hi!
Does anybody know a string function that would calculate how many
characters two strings share? I.e. ("Hello World","Hello Peter") would
be 7.
Thanks.
Laetitia
2003 Apr 28
2
Algorithm did not converge
Help! Being a bit of a novice, please bear with me if this is a stupid
question!
I am trying to fit a saturated model to some count data that I have:
model<-glm(COUNT~SP*LOC*COL*TIME*TREAT,poisson)
but R keeps on crashing and coming up with (occasionally before crashing) an
error that states:
Algorithm did not converge in: (if(is.empty.model(mt)) glm.fit.null else
glm.fit)(x = X, y = Y,
2001 Nov 01
0
Re: [Omega-help] RSPython_0.3.0 on FreeBSD 4.*:
Thanks for your help Duncan. Your last comment helped me to figure
out what FreeBSD was doing differently than Linux/Solaris. This fix worked
on a machine with Python 2.1, R 1.3.1 and FreeBSD 4.1. Here are the
details:
The pthreads fix: I added '-lc_r' to the PKG_LIBS definition in
src/Makevars.in. The FreeBSD 'man pthread' page suggests that adding
-pthread to the gcc statement