Re: [Rpy] Not getting the same result presented in RPy2 manual

2008-12-16 Thread Marcos Silva
x27;s stem() function works on RPy1x I thought that it could work in rpy2 too. Cheers. 2008/12/16 Laurent Gautier > Cc'ing the answer to the list (as it may interest others). > > > Marcos Silva wrote: > >> Hi Laurent, >> >> Thanks for your quick respo

Re: [Rpy] strings in data.frame

2008-12-14 Thread Marcos Silva
Hi Carson, The following code worked to me: import rpy2.robjects as ro d_str = dict(x = ro.StrVector(["abc", "def", "ghi"]), y = ro.StrVector(["yes", "no", "maybe"])) dataf_str = ro.r['data.frame'](**d_str) print dataf_str Cheers 2008/12/14 Carson J.Q. Farmer > Hi list, > > I'm wondering if

Re: [Rpy] Dataframe conversion question

2008-12-13 Thread Marcos Silva
Well, I don't know RPy nor Python enought, and maybe I misunderstand your data structure, but did you tried the RPy corresponding to the R function"as.data.frame(dl)" Cheers 2008/12/13 Gary Strangman > > Hi again, > > I have a list-of-lists that I want to convert to an R dataframe. (In R, it >

Re: [Rpy] RDataFrame to Python objects?

2008-12-09 Thread Marcos Silva
Factors are represented by integers numbers in R. I think the numbers you got are the integer representation of factors in your data frame. Maybe if you convert factors for character you can solve the problem... See the help for the factor() function. 2008/12/9 <[EMAIL PROTECTED]> > Thanks fo

Re: [Rpy] RPy2 fails on Windows and R-2.8.0

2008-12-02 Thread Marcos Silva
Hi, I made the changes suggested. - I created a R_HOME variable in windows with value "C:\Program Files\R\R-2.8.0" - "import win32api" is OK in my Python installation >From R I get: > Sys.getenv("R_HOME") R_HOME "C:\\PROGRA~1\\R\\R-28~1.0" > R.home() [1] "C:\\PROGRA~1\

Re: [Rpy] RPy2 fails on Windows and R-2.8.0

2008-12-01 Thread Marcos Silva
module installed? Thanks, for your help. 2008/12/1 Peter <[EMAIL PROTECTED]> > On Mon, Dec 1, 2008 at 11:37 PM, Marcos Silva <[EMAIL PROTECTED]> > wrote: > > Hi folks. I installed RPy2 on Windows and tried the test suggested in > RPy2 > > page: > > >