Overview

tsibble-package

tsibble: tidy temporal data frames and tools

Create/coerce to a tsibble

tsibble()

Create a tsibble object

as_tsibble()

Coerce to a tsibble object

is_tsibble() is_grouped_ts()

Test if the object is a tsibble

build_tsibble()

Construct a tsibble object

Tsibble verbs

index_by()

Group by time index

fill_na()

Turn implicit missing values into explicit missing values

count_gaps() gaps()

Count implicit gaps

find_duplicates()

Find duplication of key and index variables

split_by()

Split a data frame into a list of subsets by variables

Windowed functions

slide() slide_lst() slide_dfr() slider()

Sliding window calculation

tile() tile_lst() tile_dfr() tiler()

Tiling window calculation

stretch() stretch_lst() stretch_dfr() stretcher()

Stretching window calculation

Index functions

yearweek() yearmonth() yearquarter()

Represent year-week (ISO), year-month or year-quarter objects

guess_frequency()

Guess a time frequency from other index objects

Key helpers

key() key_vars() unkey()

Return key variables

key_size() n_keys() key_indices()

Compute sizes of key variables

key_update()

Change/update key variables for a given tbl_ts

Tsibble helpers

id()

Identifier to construct structural variables

interval() index() index2()

Return index and interval from a tsibble

measured_vars()

Return measured variables

is_regular() is.regular() is_ordered()

is_regular checks if a tsibble is spaced at regular time or not; is_ordered checks if a tsibble is ordered by key and index.

case_na()

A thin wrapper of dplyr::case_when() if there are NAs

Extend tsibble

index_valid()

Extensible index type to tsibble

pull_interval() time_unit()

Extract time interval from a vector

Coerce to other objects

as.ts(<tbl_ts>)

Coerce a tsibble to a time series

as_tibble(<tbl_ts>) as.data.frame(<tbl_ts>)

Coerce to a tibble or data frame

Data

pedestrian

Pedestrian counts in the city of Melbourne

tourism

Australian domestic overnight trips

Dplyr verbs

arrange(<tbl_ts>) arrange(<grouped_ts>)

Arrange rows by variables

filter(<tbl_ts>)

Return rows with matching conditions

slice(<tbl_ts>)

Selects rows by position

select(<tbl_ts>) rename(<tbl_ts>)

Select/rename variables by name

mutate(<tbl_ts>) transmute(<tbl_ts>)

Add new variables

summarise(<tbl_ts>) summarize(<tbl_ts>)

Collapse multiple rows to a single value

group_by(<tbl_ts>) ungroup(<grouped_ts>)

Group by one or more variables