【发布时间】:2022-02-09 06:11:19
【问题描述】:
鉴于我有 x 列
head(daily_negative_PRscore$x)
"2018-01-02 10:29:00 CET" "2017-01-03 18:28:00 CET" "2017-01-03 19:29:00 CET" "2018-01-03 00:00:00 CET" "2017-01-04 10:47:00 CET" "2017-01-04 11:05:00 CET"
我希望它下降的理想方式如下:
2017-01-03 18:28:00 2017-01-03 19:29:00 2017-01-04 00:00:00 ...
【问题讨论】:
-
daily_negative_PRscore <- daily_negative_PRscore[order(as.POSIXct(daily_negative_PRscore$x)),] -
非常感谢!!那行得通