Re: [Rpy] read_table on RPy2

2009-08-14 Thread Milton Cezar Ribeiro
Hi Peter, thanks for the reply. Following your tips, o got good results with: from rpy2 import robjects robjects.r('x=1:10') robjects.r('y=runif(10)') print robjects.r('ls()') aa=robjects.r('x') print aa robjects.r('mydf=data.frame(cbind(x,y))') print robjects.r('ls()') mydf_onpython=robjects.r('

Re: [Rpy] read_table on RPy2

2009-08-14 Thread Peter
On Fri, Aug 14, 2009 at 10:57 PM, Milton Cezar Ribeiro wrote: > I also tryed to get back on python environment > the results of ls() read from R, but I get error. > >    import rpy2.robjects as robjects >    print robjects.["ls()"] That looks wrong, it isn't valid python syntax. Also for calling f

[Rpy] read_table on RPy2

2009-08-14 Thread Milton Cezar Ribeiro
Dear all, I installed RPy2 using python_rpy2 OSGeo4W installer. I run it under Msys, invoking python 2.5. Aparently it works for somethings, but not for others. I would like for example read a table from a ascii delimited file, but I don't found a reproducible example that works fine like imp