Skip to content
Prev 32988 / 398506 Next

question about POSIXct conversion

Thanks for reply, but when i am trying to

 > mt <- structure(mt, class=c("POSIXt", "POSIXct"))
 >
 > or
 >
 > mt + ISOdatetime(1970,1,1,0,0,0)

it seems that i loosing structre of matrix:

str(structure(mt, class=c("POSIXt", "POSIXct")))

 > `POSIXct', format: chr [1:44] "2003-06-05 12:10:00"...

instead of:
  num [1:11, 1:4] 1.05e

Both tricks coerces my matrix in "long" vector :((

Any other suggestions?
Prof Brian Ripley wrote: