tidyverts / tsibble

Tidy Temporal Data Frames and Tools
https://tsibble.tidyverts.org
GNU General Public License v3.0
528 stars 50 forks source link

Extend `new_data()` to accept n<0 #186

Closed mitchelloharawild closed 4 years ago

mitchelloharawild commented 4 years ago

Just an idea, but this would be useful for backcasting and neaten some code for components() in fable. Behaviour is to create data with indices before the start of the data, rather than after the end of the data.

earowang commented 4 years ago

Perhaps a new function called past_data(), haha

(yep, this can be include in v0.9.0, scheduled for May 22.

mitchelloharawild commented 4 years ago

In that case new_data() might be better named future_data()?

earowang commented 4 years ago

I was joking...

yes, new_data(n <0)