how can I transpose a xts Matrix?
I do this before
M<-Z
d <- as.Date(1:nrow(M))
M<- xts(M, order.by=d)
class(M)
[1] "xts" "zoo"
# Matrix M has size 700x70 as xts format. Everything ok!
But I need these Matrix transponed as 70 x 700 format.
How can I transpose without to loose the xts format?
TM<- t(M)
class(TM)
[1] "matrix" "array"
I tried this:
as.xts(TM)
Error in as.POSIXlt.character(x, tz, ...) :
character string is not in a standard unambiguous format.
The 700 columns has the date, but only the xts isn´t more avalible.
Thank you for any ideas and helping.
Best regards.