[R] When I cbind the POSIXct gets lost

Ken Spriggs ksspriggs at gmail.com
Fri Feb 8 22:59:11 CET 2008


I would like to create a new dataframe from the DateTime column of an
existing dataframe and a numeric vector.  When I do cbind(x[,1], y) the
result is:

[1,] 1199370600     12.500
[2,] 1199371200     69.375
[3,] 1199371800     23.750

where the first column you see used to look like:
 "2008-01-03 08:30:00 Central Standard Time"
 "2008-01-03 08:40:00 Central Standard Time"
 "2008-01-03 08:50:00 Central Standard Time"

How do I keep the DateTime from getting converted?  I've tried as.POSIXct()
to convert it back (no luck).   


-- 
View this message in context: http://www.nabble.com/When-I-cbind-the-POSIXct-gets-lost-tp15364786p15364786.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list