当我在R 3.1.2中创建给定POSIXct向量的矩阵时,矩阵的条目是数字而不是POSIXct:
x <- as.POSIXct("2012-02-25 19:00:00") x attributes(x) m <- matrix(x, nrow=2, ncol=3) m attributes(m)
创建POSIXct值矩阵的最佳方法是什么?
r matrix posixct
matrix ×1
posixct ×1
r ×1