John Owens <john_owens <at> yahoo.com> writes:

> 
> Howdy, I'd like to bring Python dates into rpy2 (and then into
> ggplot2). How might this best be done? R evidently supports dates
> natively.

And as a hack, this seems to work OK for now for a 'rawdate' entry
in the dataframe where 'rawdates' is a python array of datetime
objects. 

'rawdate': ro.StrVector([d.isoformat() for d in rawdates]),

If this is sensible, having a DateVector that just took the array
of datetime objects directly would seem like a nice abstraction.

JDO


------------------------------------------------------------------------------
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to