Skip to content
Prev 309865 / 398506 Next

Dates as POSIXt

You cannot have a POSIXlt column in a data frame: if you did your 
homework you would know it is because it is length-9 list.

I don't know why str() is reporting POSIXt as a class, and your example 
is not reproducible.  Normally date-times have class

 > class(Sys.time())
[1] "POSIXct" "POSIXt"

and I suspect you actually have a POSIXct column.  But the order of 
these two classes is not important and has changed over the years.
On 05/11/2012 07:51, Daniel Haugstvedt wrote: