RE: [R] calling R from python (fwd)

2002-12-23 Thread Samir Mishra
After reading the documentation, I believe the problem may be specific to me. Either way, I'll have to investigate further, and I'll provide more details next time, if I'm unable to get things to work. In the meantime, suggestions & tips are always welcome. Thanks again. Samir. -Original Mes

RE: [R] calling R from python (fwd)

2002-12-23 Thread Samir Mishra
I'm working in WinXP. Is it the case that RSPython does not work on Win32 platforms? I believe I read this somewhere... I'd appreciate confirmation. Either way, I wasn't able to get RSPython to work for me, this was some time ago, and at that time I was very new to Python. Thanks. -Original

[R] Linking R script and a COM application

2002-12-23 Thread Wolfgang Scherr
I am new to R. I run it under MS Windows. My goal is to interface an existing R program (500 lines) with a commercial software. That one can be used as an OLE-Server. Ideally I would be able to reference and control the R-program and components of the other software out of one VBA program. To ma

Re: [R] Sweave & xtable [problem solved/workaround -> bug in xtableor textConnection?]

2002-12-23 Thread ripley
This should be fixed in R-patched and R-devel (and has been since Saturday). Certainly it has gone away for me. On Mon, 23 Dec 2002, Hedderik van Rijn wrote: > >>> cat(paste(rep("123456789!",1000),collapse="")) > >> Program received signal SIGSEGV, Segmentation fault. > >> 0x4207a4cb in strlen (

Re: [R] Sweave & xtable [problem solved/workaround -> bug in xtable or textConnection?]

2002-12-23 Thread Hedderik van Rijn
cat(paste(rep("123456789!",1000),collapse="")) Program received signal SIGSEGV, Segmentation fault. 0x4207a4cb in strlen () from /lib/i686/libc.so.6 (The cat(...) call being obtained with up-arrow command recall) To be precise, it happens *next* time I press "up" This is the same behavior I e

Re: [R] calling R from python (fwd)

2002-12-23 Thread Tim Churches
Agustin Lobo wrote: > > A question for a (experienced) user of the RPython package on > linux. > > I'm trying to call R from python on a linux (Suse 7.3) box. Since you are calling R from Python, you could try Walter Moreira's excellent RPy module. I found it much easier to install than RSPython

Re: [R] how to call R from Perl

2002-12-23 Thread Dirk Eddelbuettel
> Could you please tell me how to call R from Perl and call Perl > functions from R? Please see http://www.omegahat.org/RSPerl Dirk -- According to the latest figures, 43% of all signatures are totally worthless. __ [EMAIL PROTECTED] mailing list ht

[R] how to call R from Perl

2002-12-23 Thread Zhongming Yang
Hi, Could you please tell me how to call R from Perl and call Perl functions from R? Thanks, __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] doubt on survreg.

2002-12-23 Thread Ronaldo Reis Jr.
Hi all, I make a censored model using survreg from survival package. But the deviance values are too high, it is possible that must be a error in my model? > summary(completo) conc peso dv w temp Min. :0.7 Min. : 5.00 Min. : 1

[R] Plot scales

2002-12-23 Thread Mike Prager
I remember reading somewhere that locations on plots (in my case, arguments x and y for legend()) can be specified in several scales besides the usual data scale. I would like to set x and y as proportions of total plot size or something similar. Can anyone steer me to documentation on how to

Re: Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)

2002-12-23 Thread Stephen Arthur
I'd like to thank the R Core Team for making the parameters clearer for me on how to solve this problem. I think for now I will try to do most data management tasks in SAS (from Oracle) and then use PROC EXPORT in SAS to create a csv file that R can read and then I can do my graphics, for publicat

Re: [R] Strange axis labels?

2002-12-23 Thread Uwe Ligges
"Anon." wrote: > > Moi! > > I'm trying to add a rather long label to a y-axis, and it's so long that > it won't fit into one line. However, things get strange when I try and > split it over 2 lines. The problem seems to be the plus/minus symbol, > which means I have to use expression(). I'm us

[R] Strange axis labels?

2002-12-23 Thread Anon.
Moi! I'm trying to add a rather long label to a y-axis, and it's so long that it won't fit into one line. However, things get strange when I try and split it over 2 lines. The problem seems to be the plus/minus symbol, which means I have to use expression(). I'm using R1.6.1 on Windoze 2000. A

[R] Barplot() questions

2002-12-23 Thread Mike Prager
Using R 1.6.1 on Windows 2000. As always, a big THANK YOU to the R team. (1) Can the legend position be specified in barplot()?Right now, we are doing this with a separate call to legend(). (2) For a stacked bar, we wish to show both positive and negative values, rather than taking an alge

Re: [R] a maximazation question

2002-12-23 Thread Jan de Leeuw
Here is a version of pooled-adjacent-violators in R, which does weighted mean, weighted median, and weighted p-fractile. === pava<-function(x,w=rep(1,length(x)),block=weighted.mean){ nblock<-n<-length(x); blocklist<-array(1:n,c(n,2)); bl

Re: [R] pasting "\" into character strings

2002-12-23 Thread Thomas Lumley
On Sun, 22 Dec 2002, John Miyamoto wrote: > > I discovered from this interchange that I did not quite state my problem > correctly, but the discussion solved the real problem as well as the > stated problem. What started me on these questions was the desire to > write a function that would conver

[R] Re: pasting "\" into character strings

2002-12-23 Thread Jim_Garrett
Is it really necessary to use "\"? On my Windows 2000 system here at work, it appears that the "dos" shell interprets "/" as "\", even though "\" is the "official" Windows folder delimiter. For instance, I can type "C:/Program Files/R/rw1061/bin/Rgui.exe" (quotes included) and R opens. Using "/

Re: [R] a maximazation question

2002-12-23 Thread Thomas Lumley
On Sat, 21 Dec 2002, Shuangge Ma wrote: > Dear Sir/Madam: > this is shuangge Ma, graduate student in UW-Madison statistics department. > I have a computational question. > I have a function f(x,y). I want to find the y(x) that maximize f(x,y) > under the constraint y(x) is a non-decreasing step fu

Re: [R] calling R from python (fwd)

2002-12-23 Thread Duncan Temple Lang
My immediate guess is that you do not have R compiled as a shared library, i.e. libR.so. Without this, you cannot use R within Python, but only Python within R. libR.so is where R_GlobalEnv will come from. So check for libR.so in the directory `R RHOME`/bin. If it is not there, you will have to

[R] Extracting a dataset from an nls object

2002-12-23 Thread Florent BATY
Hi, Does anyone know if it is possible to extract the whole data set from an nls object? I tried 'nls.object'$data but it only provides the name of the data frame with no direct access to content of this data frame. Do you have an idea?? Thanks in advance. Florent BATY -- __

[R] calling R from python (fwd)

2002-12-23 Thread Agustin Lobo
A question for a (experienced) user of the RPython package on linux. I'm trying to call R from python on a linux (Suse 7.3) box. After installing R CMD INSTALL -c RSPython_0.5-2.tar.gz I start python and do: >>> import sys >>> sys.path.append('/usr/local/lib/R/library/RSPython') >>> sys.path.a