I have word frequencies observed in a data corpus in a single day, across 10minutes time interval. The data looks something like this:
word 00:00:00 00:11:00 00:22:00 00:33:00 . . . . 23:17:00 23:28:00 23:39:00
Robert 10 20 22 32 . . . . 10 11 10
Harvey 12 35 12 12 . . . . 15 26 9
I want to generate a time series object for this data using R. I know that the ts() function can be used to generate time series object where I can specify the start year and the time-interval being months or quarters. Example:
ts(data, frequency=12, start=c(1946,1))
但是,我不知道我如何利用ts来说明在一天10分钟内收集的数据。 任何cl?
Also, as you can see my data has time information in the header. Can that be used to generate time series object in R?