Re: [Rpy] Help with data frames in rpy2

2009-03-23 Thread Laurent Gautier
Lindsey, The documentation is indeed missing an explicit example. Try: import rpy2.robjects as ro import rpy2.rlike.container as rlc tl = rlc.TaggedList((ro.IntVector((1,)), ro.IntVector((2,))), tags = ('a', 'b')) df = ro.RDataFrame(tl) A TaggedList

[Rpy] Help with data frames in rpy2

2009-03-23 Thread Lindsey Bangay
Please could I ask someone for a simple example on how to use tagged lists or to create a R dataframe. I specifically need this in order to preserve the order in which variables are added to a data frame. I have fiddled with little success. Any example would be appreciated. Thanks Lindsey --