Why is this xts frequency always 1?
问题 I'm creating an xts object with a weekly (7 day) frequency to use in forecasting. However, even when using the frequency=7 argument in the xts call, the resulting xts object has a frequency of 1. Here's an example with random data: > values <- rnorm(364, 10) > days <- seq.Date(from=as.Date("2014-01-01"), to=as.Date("2014-12-30"), by='days') > x <- xts(values, order.by=days, frequency=7) > frequency(x) [1] 1 I have also tried, after using the above code, frequency(x) <- 7 . However, this