Skip to content

tsibble 0.9.0

Latest
Compare
Choose a tag to compare
@earowang earowang released this 10 Jun 02:55

tsibble 0.9.0

This release uses the vctrs package internally in {tsibble}.

Breaking changes

  • The "interval" class has been formally defined as a record type under the vctrs framework. The new_interval() uses a new interface to create the interval and supports custom interval. Old tsibble objects will receive an error for "a corrupt tsibble".

New features

  • The .full argument in *_gaps supports two more options, start() and end(), for padding NA to either starting or ending time. (#147)
  • The argument n in new_data() and append_row() supports negative integer, appending past observations to the data. (#186)
  • New set of scale_[x/y/colour/size/alpha/fill]_year*() for custom ggplot2 scales.
  • Added pivot_longer() and pivot_wider() supporting methods for tsibble.
  • bind_rows() and bind_cols() are now possible for tsibble with dplyr v1.0.0.

Improvements

  • select() a tsibble now keeps both index and key by default. (#155)
  • Added tidyr::drop_na() support for tsibble. (#173)

Bug fixes

  • Fixed bug in as.ts.tbl_ts() for ignoring implicit missings. (#160)

Deprecated functions

  • Deprecated window functions in favour of the {slider} package. (#143)
  • Deprecated units_since() in favour of vec_cast().
  • Remove is.tsibble().
  • Defunct as.tsibble().