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
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
--