Skip to contents

Convert

tsbox is built around a set of converters, which convert time series to each other

Combine and Separate

A set of helper functions to combine multiple time series

ts_c()
Collect Time Series
ts_bind() ts_chain()
Bind Time Series
ts_span()
Limit Time Span
ts_pick()
Pick Series (Experimental)

Transform

Transformation functions with a unified interface for common time series opperations

ts_scale()
Scale and Center Time Series
ts_trend()
Loess Trend Estimation
ts_pc() ts_diff() ts_pca() ts_pcy() ts_diffy()
First Differences and Percentage Change Rates
ts_compound() ts_index()
Indices from Levels or Percentage Rates
ts_lag()
Lag or Lead of Time Series

Plot and Summary

Simple and fast plotting and summary functions

ts_summary()
Time Series Properties
ts_plot()
Plot Time Series
ts_ggplot() theme_tsbox() colors_tsbox() scale_color_tsbox() scale_fill_tsbox()
Plot Time Series, Using ggplot2
ts_save()
Save Previous Plot
ts_default()
Default Column Names

Reshape

Reshaping wide data frames into long data frames and back

ts_long() ts_wide()
Reshaping Multiple Time Series

Frequency

Functions to manipulate frequency

ts_frequency()
Change Frequency
ts_regular()
Enforce Regularity
ts_na_omit()
Omit NA values
ts_first_of_period()
Use First Date of a Period

User defined ts-functions

ts_ turns existing functions into functions that can deal with any ts- boxable time series object. The example functions are useful themself.

ts_prcomp() ts_dygraphs() ts_forecast() ts_seas() ts_na_interpolation()
Principal Components, Dygraphs, Forecasts, Seasonal Adjustment
load_suggested() ts_() ts_apply()
Constructing ts-Functions
copy_class()
Re-Class ts-Boxable Object
relevant_class()
Extract Relevant Class
ts_boxable() check_ts_boxable()
Test if an Object is ts-Boxable
ts_dts()
Internal Time Series Class

Arithmetic operators

Arithmetic operators can be applied on ts-boxable objects

`%ts+%` `%ts-%` `%ts*%` `%ts/%`
Arithmetic Operators for ts-boxable objects

Others

ts_start() ts_end()
Start and end of time series
tsbox-package tsbox
tsbox: Class-Agnostic Time Series