[R] Conversion of zoo object (with POSIXct-attributes) to dataframe
mgilgen at swissonline.ch
mgilgen at swissonline.ch
Thu Aug 23 15:11:32 CEST 2007
i'm trying to convert a zoo object of the following specifications:
> str(z)
atomic [1:15642] 0 0 0 0 0 0 0 0 0 0 ...
- attr(*, "index")='POSIXct', format: chr [1:15642] "2004-09-01 02:00:00" "2004-09-01 03:00:00" "2004-09-01 04:00:00" "2004-09-01 05:00:00" ...
- attr(*, "frequency")= num 0.000278
to convert into a dataframe. the atomic object (or what it is...) is convertet correctly, but the time attribute in the POSIXct format is replaced by an index number
how can i get my data with the corresponding date/time as a second column?
thanks a lot
More information about the R-help
mailing list