Package: tstools 0.4.3

Stéphane Bisinger

tstools: A Time Series Toolbox for Official Statistics

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.

Authors:Matthias Bannert [aut], Severin Thoeni [aut], Stéphane Bisinger [aut, cre]

tstools_0.4.3.tar.gz
tstools_0.4.3.zip(r-4.5)tstools_0.4.3.zip(r-4.4)tstools_0.4.3.zip(r-4.3)
tstools_0.4.3.tgz(r-4.4-any)tstools_0.4.3.tgz(r-4.3-any)
tstools_0.4.3.tar.gz(r-4.5-noble)tstools_0.4.3.tar.gz(r-4.4-noble)
tstools_0.4.3.tgz(r-4.4-emscripten)tstools_0.4.3.tgz(r-4.3-emscripten)
tstools.pdf |tstools.html
tstools/json (API)
NEWS

# Install 'tstools' in R:
install.packages('tstools', repos = c('https://kof-ch.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/kof-ch/tstools/issues

Datasets:
  • CHGDP - CH GDP Growth Contributions
  • KOF - KOF Barometer - Swiss Business Cycle Indicator

On CRAN:

38 exports 11 stars 1.83 score 6 dependencies 163 scripts 451 downloads

Last updated 8 months agofrom:122c27b8b2. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 25 2024
R-4.5-winOKAug 25 2024
R-4.5-linuxOKAug 25 2024
R-4.4-winOKAug 25 2024
R-4.4-macOKAug 25 2024
R-4.3-winOKAug 25 2024
R-4.3-macOKAug 25 2024

Exports:color_blindcompute_decimal_timecomputeDecimalTimeconcat_tsconcatTscreate_cross_sec_overviewcreate_dummy_tsdf_to_reg_tsfill_year_with_nasfillupYearWitnNAsgenerate_random_tsimportTimeSeriesinit_tsplot_print_themeinit_tsplot_themeinitDefaultThemelong_to_tsm_to_qoverlap_sorted_ts_listsoverlap_ts_lists_by_nameoverlapSortedListsoverlapTslByNameread_swissdataread_swissdata_metaread_tsregularizeresolve_ts_overlapresolveOverlapset_month_to_NAstart_ts_after_internal_nasstrip_ts_of_leading_nasstrip_ts_of_trailing_nasstripLeadingNAsFromTsstripTrailingNAsFromTstsplottsqmwide_to_tswrite_tswriteTimeSeries

Dependencies:data.tablejsonlitelatticextsyamlzoo

tstools

Rendered fromtstools.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2024-01-18
Started: 2016-11-29

Readme and manuals

Help Manual

Help pageTopics
Read Meta Data File w/o File Extension.read_swissdata_meta_unknown_format
CH GDP Growth ContributionsCHGDP
Provide Colorblind Compliant Colorscolor_blind
Compute Decimal Time from a ts Period Vectorcompute_decimal_time
Concatenate to Non-Overlapping Time Seriesconcat_ts
Create an Overview data.table of (last) observationscreate_cross_sec_overview
Flexible Function to Create Time Series Dummy Variablescreate_dummy_ts
Turn data.frame to Regular Monthly or Quarterly Time Seriesdf_to_reg_ts
Fill Up a Time Series with NAsfill_year_with_nas
Generate a list of random time seriesgenerate_random_ts
Compute the Period Vector representation of a Decimal Time valueget_date_vector
Helper to calculate ci colors for legendsgetCiLegendColors
Initiate Default Themeinit_tsplot_print_theme init_tsplot_theme
KOF Barometer - Swiss Business Cycle IndicatorKOF
Transform a long format data.frame of time series to a tslistlong_to_ts
Turn monthly series with regular NAs to quarterm_to_q
Concat Time Series list wiseoverlap_sorted_ts_lists
Resolve Overlap Listwise, helpful with SAoverlap_ts_lists_by_name
Read data generated by the Swissdata projectread_swissdata
Read swissdata style yaml timeseries metadataread_swissdata_meta
Import time series data from a file.read_ts
Turn an Irregular Time Series to a Regular, ts-Based Seriesregularize
Concatenate Time Series and Resolve Overlap Automaticallyresolve_ts_overlap
Set Periods to NAset_month_to_NA
Start a Time Series after the Last Internal NAstart_ts_after_internal_nas
Strip Leading / Trailing NAs from a Time Series Objectstrip_ts_of_leading_nas strip_ts_of_trailing_nas
Plot Time Seriestsplot
Interpolate quarterly time series into monthlytsqm
Deprecated function(s) in tstoolscomputeDecimalTime concatTs fillupYearWitnNAs importTimeSeries initDefaultTheme overlapSortedLists overlapTslByName resolveOverlap stripLeadingNAsFromTs stripTrailingNAsFromTs tstools-deprecated writeTimeSeries
Transform a wide format data.frame into a tslistwide_to_ts
Export a list of time series to a file.write_ts