Skip to content
Prev 43713 / 398503 Next

Date Time Conversion problems...

It never worked: there was an undetected error and you got a corrupt data 
frame.  Here is concocted example from 1.7.0
Error in data.frame(x = "1", date = c("2004-02-04 17:47:50", "2004-02-04
...

You cannot add a list of length 9 to a dataframe by

data2$Date <- strptime(as.character(data2$Date),format="%m/%d/%Y")

and now you get a sensible error message.

You need to convert Date to POSIXct before trying to put the object in a
data frame.
On Wed, 4 Feb 2004, Shawn Way wrote: