[英]Hourly Time Series in R, conversione
this should look like a dumb question but: I am trying to plot a time series of tweets by hourly basis. 这看起来像是一个愚蠢的问题,但是:我正在尝试按小时绘制时间序列的推文。 My time cell looks something like: 我的时间单元格看起来像:
Thu Dec 05 13:27:46 +0000 2013
I can't figure out the way of converting it in a numerical value so to plot the convient frequency value of the tweets, by hour. 我无法弄清楚将其转换为数值的方式,因此无法按小时绘制推文的便捷频率值。
I used: as.POSIXct and as.date but always returning NA 我用过:as.POSIXct和as.date但总是返回NA
What's wrong in something like: 诸如此类的问题是什么:
test <- as.Date('Thu Dec 05 13:27:16 +0000 2013', "%a %b %d %H:%M:%S %z %Y")
? ?
Thanks to everyone :) 谢谢大家 :)
Vincenzo 文森佐
strptime('Thu Dec 05 13:27:16 +0000 2013', "%a %b %d %H:%M:%S %z %Y")
perhapse a little late, but I had exactly the same problem. 也许有点晚,但是我有完全相同的问题。 Try: 尝试:
Sys.setlocale("LC_TIME", "English")
and then re-run your code. 然后重新运行您的代码。
Best Simon 最佳西蒙
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.