Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upInconsistent output length with tk_make_future_timeseries #19
Comments
|
This should be taken care of. I have implemented a new argument
I will release to CRAN in the next few weeks, but until then, try the upgrade out: |
So this package is amazing, thank you! But it's most useful feature is a little broken. Suppose I want to make forecast for the next 60 business days. If I understand correctly, I should use this function:
idx.pred <- tk_make_future_timeseries(index(df.train), 60, inspect_weekdays = TRUE)The problem is that depending on where the weekends fall in my out of sample data, the
tk_make_future_timeseries()call returns a different length vector. Rather than returning the next sixty business days, it looks like it's taking the calendar for the next sixty days and dropping the weekends. This is a disaster, becausepred.xts <- xts(pred, idx.pred)fails with an error about series needing to be the same length as their dates.