Laurent Gautier wrote:
>
> As you noticed, there was something missing in the example I just gave.
> It should have been:
>
> import array
> import rpy2.robjects as ro
>
> d = dict(x = array.array('i', [1,2]), y = array.array('i', [2,3]))
> dataf = ro.r['data.frame'](**d)

Hi Laurent,

You mentioned using rpy2.rlike.container.TaggedList and
rpy2.robjects.RDataFrame (new in rpy2) as a "safer" approach.  Could
you show us how this example would work that way?  Given how important
dataframes are in R, this discussion could become the basis for a
section of the rpy2 manual.

Peter

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to