`guess_frequency.Rd`

A possible frequency passed to the `ts()`

function

guess_frequency(x)

x | An index object including "yearmonth", "yearquarter", "Date" and others. |
---|

If a series of observations are collected more frequently than weekly, it is more likely to have multiple seasonalities. This function returns a frequency value at its smallest. For example, hourly data would have daily, weekly and annual frequencies of 24, 168 and 8766 respectively, and hence it gives 24.

https://robjhyndman.com/hyndsight/seasonal-periods/

#> [1] 4#> [1] 12#> [1] 7guess_frequency(seq( as.POSIXct("2017-01-01 00:00"), as.POSIXct("2017-01-10 23:00"), by = "1 hour" ))#> [1] 24