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

[Rpy] strings in data.frame

2008-12-14 Thread Carson J.Q. Farmer
Hi list, I'm wondering if anyone can tell me how to convert a dictionary of lists of strings, into an R data.frame using rpy2. I've seen lots of talk about converting lists of numeric values to data.frames using arrays, but I can't seem to get anything to work for strings. For example, the fol