Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经玩了一段时间的 zoo 包。format="%Y-%m-%d %H:%M" 我可以使用该选项读取文件
format="%Y-%m-%d %H:%M"
但是在将结果写回磁盘时如何使用此选项?我的意思是,默认格式似乎是 "%m/%d/%Y %H:%M"
"%m/%d/%Y %H:%M"
我需要"%Y-%m-%d %H:%M"
"%Y-%m-%d %H:%M"
我在哪里可以更改它?
干杯
我不确定我完全明白你的意思。
但是,当我的日期看起来像d/m/y我使用以下
d/m/y
Day <- format(strptime(a$DATE, "%d/%m/%Y"), "%d")
请注意,这不使用zoo 包,仅 使用base功能
zoo
base