I have the following vector of dates:
> TimeSequence
[1] "2019-12-06 02:32:30 CET" "2019-12-06 02:32:49 CET" "2019-12-06 02:33:17 CET"
[4] "2019-12-06 02:33:19 CET" "2019-12-06 02:33:27 CET"
and I would like to have a matrix whose rows are equal to it. Then I tried with
> M1=matrix(rep(TimeSequence, length(TimeSequence)),ncol=length(TimeSequence),byrow = T)
but I obtained:
> M1
[,1] [,2] [,3] [,4] [,5]
[1,] 1575595950 1575595969 1575595997 1575595999 1575596007
[2,] 1575595950 1575595969 1575595997 1575595999 1575596007
[3,] 1575595950 1575595969 1575595997 1575595999 1575596007
[4,] 1575595950 1575595969 1575595997 1575595999 1575596007
[5,] 1575595950 1575595969 1575595997 1575595999 1575596007