Changelog
Source:NEWS.md
tsibble 1.1.5
- Fix
difference()
giving extra NA values when the time series is shorter than the lag length. (#310, @mitchelloharawild)
tsibble 1.1.4
CRAN release: 2024-01-29
- Fixed
vec_ptype2()
foryearweek
andyearquarter
for non-default week start. (#299) - Fixed
count_gaps()
warning message due to dplyr deprecation in favour ofreframe()
. (#295)
tsibble 1.1.3
CRAN release: 2022-10-09
- Fixed the argument of
.full
in*_gaps()
when inputs likeT
,F
are valid. (#275) - Fixed validation of
index2
inbuild_tsibble()
when a column name contains “index”. (#284) - No longer export
time()
methods (renamed totime_ts()
) to avoid contaminatingtime()
instats::window()
. (#277)
tsibble 1.1.1
CRAN release: 2021-12-03
- New functions
make_year*()
to easily supply time components. - Supported
stats::start()
andstats::end()
for the.full
argument in*_gaps()
, when*_gaps()
are used in other packages. (#269)
tsibble 1.1.0
CRAN release: 2021-10-22
- Abort
rbind()
andcbind()
for tsibble, and suggest to usebind_rows()
andbind_cols()
instead. (#256) - Fixed bug in
filter_in()
foryearweek
class with different week starts of than the default. (#261) - Improved
as.ts.tbl_ts()
to better handle a tsibble of multiple key variables but single value. (#258) - Added new arguments
.start
and.end
to*_gaps()
for custom starting and ending time. (#259) - Fixed bug in
holiday_aus()
for Boxing Day. If falling on Sat/Sun, the holiday should be forwarded to 2 days. (#251) - Added
count()
andtally()
S3 methods for tsibble to behave like tibble input, and henceadd_count()
andadd_tally()
. (#232) - Added a warning to
yearmonth.character()
when inputs are all numbers without delimiter. (#264) -
NA
is accepted inyear*()
, instead of errors before.
tsibble 1.0.0
CRAN release: 2021-02-20
- Fixed bug in different
yearmonth()
underlying data for character inputs. (#226) - Fixed C stack error when index contains NA with
as_tsibble()
. (#229) - Fixed bug when
by
is missing inyear*()
. (#228) - Removed rolling functions.
- Removed dependency of {purrr}.
- Added set operations (
intersect()
,union()
, andsetdiff()
) foryear*
class. (#235, @wkdavis) - Fixed bug in
full_join()
that produces an output with wrong temporal order. (#247) -
yearmonth()
supported more character formats. (#142)
tsibble 0.9.3
CRAN release: 2020-10-06
- Defunct rolling functions in favour of {slider}.
- Dropped the support of
summarise_all()
, and madedplyr::across()
compatible withsummarise.tbl_ts()
. - Fixed bug in custom ggplot scaling functions for out-of-limit breaks. (#195, #219, @TylerGrantSmith)
- Fixed crashing bug in
grouped_ts[0L, ]
. (#194, @TylerGrantSmith)
tsibble 0.9.2
CRAN release: 2020-07-24
- Fixed bug in
new_data()
for theyearweek
class. (#199) - Added index support for
lubridate::Period
, sincePeriod
can be ordered now. (#42) - Added {lubridate}’s S4 methods
as.period()
andas.duration()
for interval class. (#206) -
yearweek()
gained a new argumentweek_start
to specify the day on which week starts based on ISO 8601 standard. (#205) -
yearquarter()
gained a new argumentfiscal_start
to specify the starting month of a fiscal year. (#174)
tsibble 0.9.1
CRAN release: 2020-06-20
- Fixed bugs when
index_by()
+summarise()
with grouped factors. (#197) - Fixed
select()
when removing redundant key. (#196) - Added a new message in
new_data.grouped_ts()
to inform “grouping structure is ignored”. (#193) -
vec_slice()
updates tsibble data attributes.
tsibble 0.9.0
CRAN release: 2020-06-04
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()
andend()
, for paddingNA
to either starting or ending time. (#147) - The argument
n
innew_data()
andappend_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()
andpivot_wider()
supporting methods for tsibble. -
bind_rows()
andbind_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 ofvec_cast()
. - Remove
is.tsibble()
. - Defunct
as.tsibble()
.
tsibble 0.8.6
CRAN release: 2020-01-31
This is a maintenance release due to tidyselect
v1.0.0 changes.
tsibble 0.8.4
CRAN release: 2019-09-17
This is a maintenance release due to the changes in the upstream package.
- Removed strong dependency of tidyr to
Suggests
. - Soft deprecated
is.tsibble()
. -
has_gaps()
&count_gaps()
gained a new argument.name
for naming new columns. - Improved the speed performance for
new_data()
/append_row()
. - Improved the speed performance for
as.ts.tbl_ts()
for converting tsibble tots
. - Added the support for
POSIXlt
as index. - When the interval cannot be obtained due to the mismatched index class, an error is issued instead of a warning before.
- The interval is invariant to subsetting, such as
filter()
,slice()
, and[.tbl_ts
. - Rolling window functions, like
slide()
, are slided into the “questioning” lifecycle, in favour of the slide package. (#143)
tsibble 0.8.3
CRAN release: 2019-07-29
- Added lifecycle badges to functions.
-
index_by()
supports lambda expression (#91). - Defunct argument
gather
inas_tsibble.mts()
in favour ofpivot_longer
. -
yearweek()
handles characters containing keywords “W”/“Wk”/“Week”, for exampleyearweek("2019 W03")
.
tsibble 0.8.2
CRAN release: 2019-06-10
This is a patch release.
- Fixed bugs for losing the “ordered” attribute when renaming a tsibble, introduced in v0.8.1 (#126).
- Fixed bug in
as.ts.tbl_ts()
for handling a tsibble of one row (#124). - Fixed issue of
nest.tbl_ts()
for naming (#123). - Fixed floating issues for duplicated indices in
as_tsibble.ts()
(#128).
tsibble 0.8.1
CRAN release: 2019-06-03
-
Breaking change:
index_by(.data, <empty>)
by default groups the index variable rather than previouslyungroup()
. - Added new
unnest_tsibble()
to minimise the impact from the upcoming API changes intidyr::unnest()
. -
index_by()
allows for grouping index variable; andgroup_by()
will throw out an error for grouping index. - When creating a tsibble, a warning might be issued for mismatch between interval and index representation.
- Fixed bugs in
semi_join.tbl_ts()
andanti_join.tbl_ts()
without suffix (#122). - Deprecate
as.tsibble()
in favour ofas_tsibble()
. - Defunct
fill_na()
in favour offill_gaps()
. - Defunct
pull_interval()
in favour ofinterval_pull()
.
tsibble 0.8.0
CRAN release: 2019-04-28
Breaking changes
- This release has undergone an overhaul to clean tsibble’s meta data: (1) attribute
regular
integrated tointerval
, (2) attributeordered
integrated toindex
. A previously stored tsibble object may receive a warning “corrupt tsibble object”. - The dplyr and tidyr generics are no longer re-exported. Instead they will be registered on load, which means you need to explicitly load
library(tidyverse)
in front.
Defunct & deprecated functions/arguments
- Deprecate
id()
for creating key for the consistence of tidy selectors, and will be defunct as of v0.9.0. - Deprecate of
pull_interval()
in favour ofinterval_pull()
. - Deprecate
as.tsibble()
in favour ofas_tsibble()
. The warning is displayed once per session. - Deprecate
gather = TRUE
inas_tsibble.ts()
in favour ofpivot_longer = TRUE
. - Continue with deprecation of
fill_na()
in favour offill_gaps()
, and will be defunct in the next release.
Improvements
- Support the interval of “quarter”, “month”, “week” & “day” for
difftime
. - Support the interval of “millisecond” & “microsecond” for
hms
. - Added new argument
.drop
for dropping empty factor or not inas_tsibble()
andbuild_tsibble()
. - Binary
-
operator between yearweek, yearmonth, and yearquarter returns classdifftime
. - Added new argument
key_data
tobuild_tsibble()
for the easy-to-reason purpose. -
yearquarter()
better supports strings that contains “Q”/“Qtr”/“Quarter”. (#107)
Bug fixes
- Fixed bugs in
as_tsibble.ts()
for monthly series starting at other months than January. (#89) -
guess_frequency.yearweek()
returns 52.18 for more accurate weekly representation, instead of 52. -
n()
now can be called inslice.tbl_ts()
. (#95) - Fixed false warnings for negative indices in
slice.tbl_ts()
. - Fixed false warnings for a few cases in
arrange.tbl_ts()
. - Fixed
*_join()
for not finding key or index whenby
is specified. (#102) - Added “Tasmania” to
data(tourism)
and 2017 data. - More robustly handles sub-second intervals.
tsibble 0.7.0
CRAN release: 2019-02-18
Breaking changes
- Following the changes in dplyr
v0.8.0
grouped data frames, tsibble allows for empty key values and disregards the lazily stored key. All operations now recalculate the keying structure. - Grouped tsibble (
grouped_ts
) is a subclassing ofgrouped_df
. - The argument
.size
is retired instretch()
in favour of.step
. -
stretch()
gained a new.fill = NA
argument, which returns the same length as the input. To restore the previous behaviour, please use.fill = NULL
. (#88)
New features
-
slide_tsibble()
,tile_tsibble()
,stretch_tsibble()
provide fast and shorthand subsetting tsibble by rolling rows. -
slide()
gained a new.step
argument for calculating at every specified step instead of every single step. -
update_tsibble()
to update key and index a bit easier.
Bug fixes
- Fixed
rbind()
for dropping custom index class. (#78) - Fixed
count_gaps()
for dropping custom index class. -
count_gaps()
now only summarises keys with gaps instead of all the keys. - Fixed
guess_frequency.yearweek()
returningInf
. (@jeffzi, #84) - Fixed incorrect interval computation for fractional doubles.
- More appropriately handles sub-second intervals.
- If grouped tsibble,
fill_gaps()
returns a grouped tsibble too.
Defunct & deprecated functions
- Defunct
find_duplicates()
. - Deprecated
fill_na()
in favour offill_gaps()
. - Defunct argument
.drop
in column-wise dplyr verbs. - Defunct
key_by()
(no idea why it’s there).
tsibble 0.6.2
CRAN release: 2018-12-12
New features
-
scan_gaps()
joins the family of implicit missing values handlers. - The rolling window family gains parallel processing capabilities, prefixed by
future_
. It requires the furrr package to be installed. (#66)
Bug fixes
- Regression bug (since tsibble v0.6.0) for subsetting tsibble using
[.tbl_ts
. (#76) - Issue a warning when a system time zone is “Europe/London” for
time_in()
andfilter_index()
.
tsibble 0.6.1
CRAN release: 2018-12-05
- Fixed check errors on Fedora.
- If
.data
is a complete tsibble,fill_gaps()
gives a warning instead of an error when name-value pairs are supplied. -
filter_index()
works for a grouped tsibble.
tsibble 0.6.0
CRAN release: 2018-11-27
This release simplifies the “key” structure. The nesting and crossing definition has been removed from the “key” specification. One or more variables forming the “key”, are required to identify observational units over time, but no longer assume the relationship between these variables. The nesting and crossing structure will be dealt with visualisation and forecasting reconciliation in downstream packages.
Breaking changes
-
count_gaps.tbl_ts()
returns a tibble containing gaps for each key value rather than an overall gap, which is consistent with the rest of tsibble methods. And all output column names that are not supplied by users gain a prefixed “.”. -
time_unit()
acceptsinterval
input instead of time vectors to avoid overheads, also marked as internal function. - Separate partial sliding from
slider()
andpslider()
as new functionspartial_slider()
andpartial_pslider()
. Argument.partial
is removed fromslider()
andpslider()
to feature a simpler interface. - Removed argument
group
frombuild_tsibble()
. In order to construct a grouped tsibble,x
requires a grouped df.
New features
- Added S3 generic
has_gaps()
to quickly check if there are implicit time gaps for each key in a tsibble. - Added S3 generic
new_data()
to produce the future of a tsibble. - A shorthand
filter_index()
to filter time window for a tsibble. - New S3 generic
time_in()
to check if time falls in the ranges in compact expression, with no need for time zone specification. - An empty tsibble is now valid and will not raise an error, which makes it easier to programme with.
- New vignettes on handling implicit missingness and FAQ.
-
new_tsibble()
creates a subclass of a tsibble. - Renamed
fill_na()
tofill_gaps()
, for more expressive function name and consistency tohas_gaps()
andcount_gaps()
. Soft-deprecatedfill_na()
. (#71) - Added
is_duplicated()
,are_duplicated()
andduplicates()
. - If
POSIXct
, time zone will be displayed in the header viaprint()
. - Added index support for ordered factors.
Bug fixes
- Fixed unexpected error message for
holiday_aus()
that requires package “timeDate”. - Fixed
summarise.tbl_ts()
,select.tbl_ts()
&fill_na.tbl_ts()
scoping issue (#67). -
slice.tbl_ts()
correctly handles logicalNA
. -
fill_na()
will only replace implicit time gaps by values and functions, and leave originally explicitNA
intact. -
tidyr::fill()
gained support for class “grouped_ts”, and it is re-exported again. (#73)
Misc
- Soft-deprecated
fill_na()
, in favour offill_gaps()
. - Soft-deprecated
find_duplicates()
, in favour ofare_duplicated()
. - Deprecated
case_na()
, and will be defunct in next release. - Deprecated
split_by()
, which is under development as S3 generic in dplyr. - Soft-deprecated
as.tsibble()
, followingas.tibble()
in tibble. - Deprecated
.drop
argument in column-wise verbs, and suggested to useas_tibble()
. - If
select()
doesn’t select index, it will inform users and automatically select it.
tsibble 0.5.3
CRAN release: 2018-10-10
New features
- Added
append_row()
for easily appending new observations to a tsibble. (#59) - Nesting structure can be specified using
/
, consistent withlm
. (#64)
Bug fixes
- Fixed warning in
fill_na()
for multiple replacements when using withgroup_by()
, introduced in v0.5.1. -
as_tsibble.grouped_df()
respected its existing groups and removed argumentgroup
. (#60) - Preserve the ordering of key specification in
select.tbl_ts()
. (#63)
tsibble 0.5.2
CRAN release: 2018-09-11
Improvements
- Slightly faster
nest.tbl_ts()
. -
index_by()
gives more informative error when LHS is named as index.
Changes catering for the updates in tibble
- No longer reexported
as.tibble()
. - Reexported
tibble()
.
tsibble 0.5.1
CRAN release: 2018-08-20
New features
-
tile()
gained a new argument.bind = FALSE
. - Vectorised arithmetic operators (
+
&-
) for yearweek, yearmonth, and yearquarter. -
new_interval()
creates an “interval” object with the specified values.
Improvements
- Faster performance in
fill_na()
for replacing values whengroup_by()
. - Speed improvement when subsetting yearweek, yearmonth and yearquarter using
[
.
Bug fixes
- Fixed key updating via
group_by()
+summarise()
. (#47) - Respected the ordering of input variables while creating the key.
- Fixed “attempt to select less than one element in integerOneIndex” error message in
unnest.lst_ts()
. - Fixed incorrect interval when doing join operations for custom index class. (#52)
- Avoided warnings when character input for key and value in
gather.tbl_ts()
. (#54)
Misc
-
slide()
&stretch()
use the same coercion rules asdplyr::combine()
now, if.bind = TRUE
. - Avoid strong dependency on
pillar
. - Setting row names on a tsibble is deprecated, which is consistent with
tibble
.
tsibble 0.5.0
CRAN release: 2018-08-05
This release introduced the breaking changes to the “interval” class to make tsibble better support finer time resolution (e.g. millisecond, microsecond, and nanosecond). The “interval” format changes from upper case to short hand. To support new time index class, only index_valid()
and pull_interval()
need to be defined now.
New features
- Added “nanotime” support for nanoseconds.
- Added scoped variant
group_by_key()
to easily group the key variables. -
slide()
gained a new argument.align = "right"
to align at “right”, “center”, or “left”. If window size is even for center alignment, either “center-right” or “center-left” is needed. - Defined arithmetic operators (
+
&-
) for yearweek, yearmonth, and yearquarter. -
slide()
andstretch()
gained a new argument.bind = FALSE
. - A new vignette on window functions.
Improvements
- Speed improvement for internals when it’s a known valid tsibble. (#43)
- Better support “millisecond” and “microsecond”.
Internal changes
- Replaced
NA
orNULL
with0
in the “interval” class to make the representation simpler. - The
interval
class has new slots of “millisecond”, “microsecond”, “nanosecond”. -
time_unit()
is a function instead of S3 generic, and made index extension a bit easier.
Bug fixes
- Fixed warning in
format.yearweek()
. - Fixed
group_by.lst_ts()
for dropping the grouping information. - Fixed
stretch2()
only applying.f
to one input. - Fixed NSE in
as_tsibble.grouped_df()
for groups. (#44) - Fixed bug in
.fill = NULL
forslide()
.
tsibble 0.4.0
CRAN release: 2018-07-06
Breaking changes
- Restructured windowed functions to follow the
purrr
style exactly (#35):-
slide()
,tile()
,stretch()
return lists only instead of numerics before. - added
slide2()
,pslide()
to map over multiple inputs simultaneously. - added other type-stable variants such as
slide_dbl()
,slide_int()
,slide_chr()
,slide_lgl()
. - A negative window size results in a backward moving direction.
-
slide()
gained a new argument.partial
to support partial sliding.
-
- Renamed
x
to.x
inslider()
,tiler()
,stretcher()
. -
pslider()
,ptiler()
,pstretcher()
support multiple inputs now, and split them in parallel.
New features
- New
holiday_aus()
for Australian national and state-based public holiday. - Defined
diff()
for year-week, year-month, and year-quarter. -
yearweek()
,yearmonth()
,yearquarter()
supported for character. - Added
slide2()
,pslide()
,tile2()
,ptile()
,stretch2()
,pstretch()
to slide over multiple inputs simultaneously (#33). - New S3 generics
units_since()
for index classes. - New
is_53weeks()
for determine if the year has 53 ISO weeks. - New S3 generics
key_sum()
for extending tsibble.
Improvements
-
as_tsibble.ts()
removed thetsp
attribute from thevalue
column. - Dropped the “lst_col” attribute from
lst_ts
(#25). - More informative error message when a data frame is passed to
tsibble()
. - More informative error message for
fill_na()
andcount_gaps
when a tsibble of unknown interval. -
as_tsibble.tbl_ts()
&as_tsibble.grouped_ts()
now return self (#34). -
id()
is used in the tsibble context (e.g.as_tsibble()
,tsibble()
,build_tsibble()
) regardless of the conflicts with dplyr or plyr, to avoid frustrating message (#36). -
select.tbl_ts()
now preserved index.
Bug fixes
- Fixed bug in
as.ts.tbl_ts()
for ignoring thevalue
argument when the key is empty. - Fixed bug in
[.tbl_ts()
when subsetting columns by characters (#30). - Fixed bug in
fill_na.tbl_ts()
dropping custom index class (#32). - Fixed bug in
format.yearweek()
due to the boundary issue (#27). - If a column passed as
index
containsNA
, abort.
tsibble 0.3.0
CRAN release: 2018-05-29
The tsibble package has a hexagon logo now! Thanks Mitch (@mitchelloharawild).
Internal changes
- If
index2
deviates fromindex
(usingindex_by()
), theindex2
will be part of grouping variables.
tsibble 0.2.0
CRAN release: 2018-05-11
This release (hopefully) marks the stability of a tsibble data object (tbl_ts
). A tbl_ts
contains the following components:
-
key
: single or multiple columns uniquely identify observational units over time. A key consisting of nested and crossed variables reflects the structure underlying the data. The programme itself takes care of the updates in the “key” when manipulating the data. The “key” differs from the grouping variables with respect to variables manipulated by users. -
index
: a variable represents time. This together the “key” uniquely identifies each observation in the data table. -
index2
: why do we need the second index? It means re-indexing to a variable, not the second index. It is identical to theindex
most time, but start deviating when usingindex_by()
.index_by()
works similarly togroup_by()
, but groups the index only. The dplyr verbs, likefilter()
,mutate()
, operates on each time group of the data defined byindex_by()
. You may wonder why introducing a new function rather than usinggroup_by()
that users are most familiar with. It’s because time is indispensable to a tsibble,index_by()
provides a trace to understanding how the index changes. For this purpose,group_by()
is just too general. For example,index_by()
+summarise()
aggregates data to less granular time period, leading to the update in index, which is nicely and intuitively handled now. -
interval
: aninterval
class to save a list of time intervals. It computes the greatest common factor from the time difference of theindex
column, which should give a sensible interval for the almost all the cases, compared to minimal time distance. It also depends on the time representation. For example, if the data is monthly, the index is suggested to use ayearmonth()
format instead ofDate
, asDate
only gives the number of days not the number of months. -
regular
: since a tsibble factors in the implicit missing cases, whether the data is regular or not cannot be determined. This relies on the user’s specification. -
ordered
: time-wise and rolling window functions assume data of temporal ordering. A tsibble will be sorted by its time index. If a key is explicitly declared, the key will be sorted first and followed by arranging time in ascending order. If it’s not in time order, it broadcasts a warning.
Breaking changes
- Deprecated
tsummarise()
and its scoped variants. It can be replaced by the comboindex_by()
+summarise()
(#20).tsummarise()
provides an unintuitive interface where the first argument keeps the same size of the index, but the remaining arguments reduces rows to a single one. Analogously, it doesgroup_by()
and thensummarise()
. The proposedindex_by()
solves the issue of index update. - Renamed
inform_duplicates()
(defunct) tofind_duplicates()
to better reflect its functionality. -
key_vars()
andgroup_vars()
return a vector of characters instead of a list. -
distinct.tbl_ts()
now returns a tibble instead of an error. - No longer reexported
dplyr::do()
andtidyr::fill()
, as they respect the input structure. - Defunct
index_sum()
, and replaced byindex_valid()
to extend index type support.
New functions
-
index_by()
groups time index, as the counterpart ofgroup_by()
in temporal context. - A new S3 generic
count_gaps()
andgaps()
counts time gaps (implicit missing observations in time). -
yearweek()
creates and coerces to a year-week object. (#17)
API changes
-
fill_na.tbl_ts()
gained a new argument of.full = FALSE
..full = FALSE
(the default) insertsNA
for each key within its time period,TRUE
for the entire time span. This affects the results offill_na.tbl_ts()
as it only tookTRUE
into account previously. (#15) - Renamed the
drop
argument to.drop
in column-wise dplyr verbs. - Dropped the
duplicated
argument inpull_interval()
. -
group_by.tbl_ts()
behaves exactly the same asgroup_by.tbl_df
now. Grouping variables are temporary for data manipulation. Nested or crossed variables are not the type thatgroup_by()
thinks.
Improvements
- Added overall time span to the
glimpse.tbl_ts()
. - Slightly improved the speed of
fill_na()
.
Internal changes
- A
tbl_ts
gains a new attributeindex2
, which is a candidate of new index (symbol) used byindex_by()
. - The time interval is obtained through the greatest common factor of positive time differences. This covers broader cases than the minimal value.
-
attr(grouped_ts, "vars")
stores characters instead of names, same asattr(grouped_df, "vars")
.
tsibble 0.1.5
CRAN release: 2018-04-01
This release introduces major changes into the underlying tbl_ts
object:
- Dropped the attribute “key_indices” from a
tbl_ts
class to reduce the object size, and computed on the fly when printing. - Gained a new attribute “ordered” to identify if it is arranged by key and index in ascending order. If not, broadcast a warning. The warning likely occurs to
arrange()
andslice()
functions. - The “index” attribute in a
tbl_ts
object is a symbol now instead of a quosure. - The “key” attribute in a
tbl_ts
object is an unnamed list of symbols.
New functions
- “key” helpers:
-
key_update()
to change/update the keys for a given tsibble. -
unkey()
as an S3 method for a tsibble of key size < 2. -
key_indices()
as an S3 method to extract key indices.
-
-
split_by()
to split a tsibble into a list of data by unquoted variables. -
build_tsibble()
allows users to gain more control over a tsibble construction. - Added
as_tsibble.msts()
for multiple seasonality time series defined in the forecast package.
Bug fixes
- Fixed
as_tsibble.ts()
for daily time series (when frequency = 7). -
group_by.tbl_ts()
does not accept named expressions.
tsibble 0.1.3
CRAN release: 2018-02-20
New functions
- Added the scoped variants for
tsummarise()
includingtsummarise_all()
,tsummarise_if()
,tsummarise_at()
.
API changes
- The windowed functions, including
slide()
,tile()
,stretch()
, are no longer defined as S3 methods. Several new variants have been introduced for the purpose of type stability, likeslide_lst()
(a list),slide_dfr()
(a row-binding data frame),slide_dfc()
(a column-binding data frame). - The
index
variable must sit in the first name-value pair intsummarise()
instead of any position in the call. -
transmute.tbl_ts()
keeps the newly created variables along with index and keys, instead of throwing an error before. - Depends on purrr (>= 0.2.3)
tsibble 0.1.2
CRAN release: 2018-01-27
This release marks the complete support of dplyr key verbs.
Reexported functions
-
tidyr::fill()
fillsNA
backward or forward in tsibble. - Implement
tbl_ts
support fordplyr::*_join()
. - No
tbl_ts
support fordplyr::transmute()
anddplyr::distinct()
and return an error.
New functions
-
inform_duplicates()
informs which row has duplicated elements of key and index variables.
Bug fixes
- Fix bug in
summarise.tbl_ts()
andtsummarise.tbl_ts()
, when calling functions with no parameters likedplyr::n()
. - In
summarise.tbl_ts()
andtsummarise.tbl_ts()
, one grouping level should be dropped for the consistency withdplyr::summarise()
for a groupedtbl_ts
. - Fix incorrect group and key indices.
-
NULL
andtbl_ts
are supported inas_tsibble()
. An empty tsibble is not allowed. -
group_by.tbl_ts(.data, ..., add = TRUE)
works as expected now.