tstools0.4.3 package

A Time Series Toolbox for Official Statistics

color_blind

Provide Colorblind Compliant Colors

compute_decimal_time

Compute Decimal Time from a ts Period Vector

concat_ts

Concatenate to Non-Overlapping Time Series

create_cross_sec_overview

Create an Overview data.table of (last) observations

create_dummy_ts

Flexible Function to Create Time Series Dummy Variables

df_to_reg_ts

Turn data.frame to Regular Monthly or Quarterly Time Series

dot-read_swissdata_meta_unknown_format

Read Meta Data File w/o File Extension

fill_year_with_nas

Fill Up a Time Series with NAs

generate_random_ts

Generate a list of random time series

get_date_vector

Compute the Period Vector representation of a Decimal Time value

getCiLegendColors

Helper to calculate ci colors for legends

init_tsplot_theme

Initiate Default Theme

long_to_ts

Transform a long format data.frame of time series to a tslist

m_to_q

Turn monthly series with regular NAs to quarter

overlap_sorted_ts_lists

Concat Time Series list wise

overlap_ts_lists_by_name

Resolve Overlap Listwise, helpful with SA

read_swissdata

Read data generated by the Swissdata project

read_swissdata_meta

Read swissdata style yaml timeseries metadata

read_ts

Import time series data from a file.

regularize

Turn an Irregular Time Series to a Regular, ts-Based Series

resolve_ts_overlap

Concatenate Time Series and Resolve Overlap Automatically

set_month_to_NA

Set Periods to NA

start_ts_after_internal_nas

Start a Time Series after the Last Internal NA

strip_nas

Strip Leading / Trailing NAs from a Time Series Object

tsplot

Plot Time Series

tsqm

Interpolate quarterly time series into monthly

tstools-deprecated

Deprecated function(s) in tstools

wide_to_ts

Transform a wide format data.frame into a tslist

write_ts

Export a list of time series to a file.

Plot official statistics' time series conveniently: automatic legends, highlight windows, stacked bar chars with positive and negative contributions, sum-as-line option, two y-axes with automatic horizontal grids that fit both axes and other popular chart types. 'tstools' comes with a plethora of defaults to let you plot without setting an abundance of parameters first, but gives you the flexibility to tweak the defaults. In addition to charts, 'tstools' provides a super fast, 'data.table' backed time series I/O that allows the user to export / import long format, wide format and transposed wide format data to various file types.

  • Maintainer: Stéphane Bisinger
  • License: GPL-2
  • Last published: 2024-01-18