Re: [Rpy] Fwd: R while loop

2008-01-15 Thread richard mendes
Thanks for the advice, this will certainly help a lot. I think i will pass on the rserve interface :). In my opinion it's a layer that isn't specifically written for python and to be able to use it in a stable condition, the interface probably needs a lot of maintenance overtime. If i have to buil

Re: [Rpy] Fwd: R while loop

2008-01-15 Thread Michael ODonnell
Richard, I have not been using rpy all that long, but it seems powerful to me. I suggest first reading rpy documentation and especially the sections on notation of underscores. Second, when I use scripts I generally create a file/script and then call the script from python/rpy. There are proba

Re: [Rpy] Fwd: R while loop

2008-01-15 Thread Barry Rowlingson
richard mendes wrote: > Hello Sean, > The code that i was using was simply pasting the same code in python. > r("i<-1") # i should use the attach statement i think > r("while (i <= length(groups) ) {") > r("png(file=sprintf('MAplot%03d.png', i), width=600, height=600)") > r("MAplot(rawAffyData, pa

Re: [Rpy] Fwd: R while loop

2008-01-15 Thread richard mendes
Hello Sean, The code that i was using was simply pasting the same code in python. r("i<-1") # i should use the attach statement i think r("while (i <= length(groups) ) {") r("png(file=sprintf('MAplot%03d.png', i), width=600, height=600)") r("MAplot(rawAffyData, pairs=TRUE, plot.method='smoothScatt

Re: [Rpy] Fwd: R while loop

2008-01-15 Thread Sean Davis
On Jan 15, 2008 1:38 PM, richard mendes <[EMAIL PROTECTED]> wrote: > > Hello Rpy users, > > Probably a very simple question but i couldn't find the answer in the > documentation. > i have a r script which uses a while loop, how should i execute this in > rpy ? > > the script looks like: > > i<-1 >

[Rpy] Fwd: R while loop

2008-01-15 Thread richard mendes
Hello Rpy users, Probably a very simple question but i couldn't find the answer in the documentation. i have a r script which uses a while loop, how should i execute this in rpy ? the script looks like: i<-1 while (i <= length(groups) ) { png(file=sprintf('MAplot%03d.png', i), wi