[英]I need to convert my timestamp of “1/1/2018 0:00” for my time series analysis. Is there a code to keep the time relevant in this function?
My goal is to highlight anomalies and trends seasonally in water quality data so I am trying to determine how I can convert and format the time stamps correctly. 我的目标是突出显示水质数据的季节性异常和趋势,因此我试图确定如何正确转换和格式化时间戳。
I am reading in from a csv. 我正在从csv阅读。 I have tried
as.Date
but that doesn't keep the time stamp and the time of day is relevant to my analyses. 我已经尝试过
as.Date
但这并不保留时间戳,并且一天中的时间与我的分析有关。
您还可以从timeDate包中使用as.timeDate(“ 2019-07-02 13:33:12”)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.