{
  "_id": "6a105788acfb0bcc41ca3003",
  "Type": "Package",
  "Package": "tstools",
  "Title": "A Time Series Toolbox for Official Statistics",
  "Version": "0.4.4",
  "Authors@R": "c(\nperson(\"Matthias\", \"Bannert\", , \"bannert@kof.ethz.ch\", role = \"aut\"),\nperson(\"Severin\", \"Thoeni\", , \"thoenis@kof.ethz.ch\", role = \"aut\"),\nperson(\"Stéphane\", \"Bisinger\", , \"bisinger@kof.ethz.ch\", role = c(\"aut\", \"cre\"))\n)",
  "Description": "Plot official statistics' time series conveniently:\nautomatic legends, highlight windows, stacked bar chars with\npositive and negative contributions, sum-as-line option, two\ny-axes with automatic horizontal grids that fit both axes and\nother popular chart types. 'tstools' comes with a plethora of\ndefaults to let you plot without setting an abundance of\nparameters first, but gives you the flexibility to tweak the\ndefaults. In addition to charts, 'tstools' provides a super\nfast, 'data.table' backed time series I/O that allows the user\nto export / import long format, wide format and transposed wide\nformat data to various file types.",
  "License": "GPL-2",
  "URL": "https://kof-ch.github.io/tstools/,\nhttps://github.com/KOF-ch/tstools",
  "BugReports": "https://github.com/KOF-ch/tstools/issues",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Repository": "https://kof-ch.r-universe.dev",
  "Date/Publication": "2025-09-11 10:30:22 UTC",
  "RemoteUrl": "https://github.com/kof-ch/tstools",
  "RemoteRef": "HEAD",
  "RemoteSha": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
  "Packaged": {
    "Date": "2026-05-09 07:20:50 UTC",
    "User": "root"
  },
  "Author": "Matthias Bannert [aut],\nSeverin Thoeni [aut],\nStéphane Bisinger [aut, cre]",
  "Maintainer": "Stéphane Bisinger <bisinger@kof.ethz.ch>",
  "MD5sum": "87d6dd516bad0d6f02a8eb8777e2ccc3",
  "_user": "kof-ch",
  "_type": "src",
  "_file": "tstools_0.4.4.tar.gz",
  "_fileid": "a6e280f7ea67cbd5639b2340b491cc6056ed7d4035f827b86d6a442c62504c2f",
  "_filesize": 2919020,
  "_sha256": "a6e280f7ea67cbd5639b2340b491cc6056ed7d4035f827b86d6a442c62504c2f",
  "_created": "2026-05-09T07:20:50.000Z",
  "_published": "2026-05-22T13:18:00.875Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77387392320,
      "time": 127,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6893942239"
    },
    {
      "job": 77387392629,
      "time": 121,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893941111"
    },
    {
      "job": 77387392254,
      "time": 73,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6893936801"
    },
    {
      "job": 77387392375,
      "time": 86,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893937949"
    },
    {
      "job": 77387391615,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893929620"
    },
    {
      "job": 77387391509,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7161452800"
    },
    {
      "job": 77387392459,
      "time": 89,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6893938184"
    },
    {
      "job": 77387392890,
      "time": 87,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6893938016"
    },
    {
      "job": 77387392772,
      "time": 133,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893942549"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/kof-ch/tstools",
  "_commit": {
    "id": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
    "author": "Stéphane Bisinger <bisinger@kof.ethz.ch>",
    "committer": "Stéphane Bisinger <bisinger@kof.ethz.ch>",
    "message": "Increment version number to 0.4.4\n",
    "time": 1757586622
  },
  "_maintainer": {
    "name": "Stéphane Bisinger",
    "email": "bisinger@kof.ethz.ch",
    "login": "kjir",
    "twitter": "@SteBjoerne",
    "uuid": 64094
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.0.0",
      "role": "Depends"
    },
    {
      "package": "zoo",
      "version": ">= 1.7-12",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "xts",
      "role": "Imports"
    },
    {
      "package": "yaml",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "openxlsx",
      "role": "Suggests"
    },
    {
      "package": "reshape2",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "kof-ch",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-37",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "0.4.4",
      "date": "2025-09-11"
    }
  ],
  "_stars": 12,
  "_contributors": [
    {
      "user": "mbannert",
      "count": 312,
      "uuid": 1382079
    },
    {
      "user": "homocodens",
      "count": 20,
      "uuid": 32675029
    },
    {
      "user": "kjir",
      "count": 20,
      "uuid": 64094
    },
    {
      "user": "timothymerlin",
      "count": 1,
      "uuid": 2305405
    },
    {
      "user": "jburkhardt",
      "count": 1,
      "uuid": 5146122
    },
    {
      "user": "olivroy",
      "count": 1,
      "uuid": 52606734
    }
  ],
  "_userbio": {
    "uuid": 31089149,
    "type": "organization",
    "name": "KOF Swiss Economic Institute"
  },
  "_downloads": {
    "count": 751,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tstools"
  },
  "_devurl": "https://github.com/kof-ch/tstools",
  "_pkgdown": "https://kof-ch.github.io/tstools/",
  "_searchresults": 209,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tstools.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kof-ch/tstools",
  "_realowner": "kof-ch",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.5.1",
      "date": "2018-02-07"
    },
    {
      "version": "0.3.6",
      "date": "2018-03-13"
    },
    {
      "version": "0.3.6.1",
      "date": "2018-04-24"
    },
    {
      "version": "0.3.7",
      "date": "2018-07-16"
    },
    {
      "version": "0.3.8",
      "date": "2018-09-11"
    },
    {
      "version": "0.4.1",
      "date": "2022-03-30"
    },
    {
      "version": "0.4.2",
      "date": "2023-06-07"
    },
    {
      "version": "0.4.3",
      "date": "2024-01-18"
    },
    {
      "version": "0.4.4",
      "date": "2025-09-11"
    }
  ],
  "_exports": [
    "color_blind",
    "compute_decimal_time",
    "computeDecimalTime",
    "concat_ts",
    "concatTs",
    "create_cross_sec_overview",
    "create_dummy_ts",
    "df_to_reg_ts",
    "fill_year_with_nas",
    "fillupYearWitnNAs",
    "generate_random_ts",
    "importTimeSeries",
    "init_tsplot_print_theme",
    "init_tsplot_theme",
    "initDefaultTheme",
    "long_to_ts",
    "m_to_q",
    "overlap_sorted_ts_lists",
    "overlap_ts_lists_by_name",
    "overlapSortedLists",
    "overlapTslByName",
    "read_swissdata",
    "read_swissdata_meta",
    "read_ts",
    "regularize",
    "resolve_ts_overlap",
    "resolveOverlap",
    "set_month_to_NA",
    "start_ts_after_internal_nas",
    "strip_ts_of_leading_nas",
    "strip_ts_of_trailing_nas",
    "stripLeadingNAsFromTs",
    "stripTrailingNAsFromTs",
    "tsplot",
    "tsqm",
    "wide_to_ts",
    "write_ts",
    "writeTimeSeries"
  ],
  "_datasets": [
    {
      "name": "CHGDP",
      "title": "CH GDP Growth Contributions",
      "object": "CHGDP",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "KOF",
      "title": "KOF Barometer - Swiss Business Cycle Indicator",
      "object": "KOF",
      "class": [
        "list",
        "tslist"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dot-read_swissdata_meta_unknown_format",
      "title": "Read Meta Data File w/o File Extension",
      "topics": [
        ".read_swissdata_meta_unknown_format"
      ]
    },
    {
      "page": "CHGDP",
      "title": "CH GDP Growth Contributions",
      "topics": [
        "CHGDP"
      ]
    },
    {
      "page": "color_blind",
      "title": "Provide Colorblind Compliant Colors",
      "topics": [
        "color_blind"
      ]
    },
    {
      "page": "compute_decimal_time",
      "title": "Compute Decimal Time from a ts Period Vector",
      "topics": [
        "compute_decimal_time"
      ]
    },
    {
      "page": "concat_ts",
      "title": "Concatenate to Non-Overlapping Time Series",
      "topics": [
        "concat_ts"
      ]
    },
    {
      "page": "create_cross_sec_overview",
      "title": "Create an Overview data.table of (last) observations",
      "topics": [
        "create_cross_sec_overview"
      ]
    },
    {
      "page": "create_dummy_ts",
      "title": "Flexible Function to Create Time Series Dummy Variables",
      "topics": [
        "create_dummy_ts"
      ]
    },
    {
      "page": "df_to_reg_ts",
      "title": "Turn data.frame to Regular Monthly or Quarterly Time Series",
      "topics": [
        "df_to_reg_ts"
      ]
    },
    {
      "page": "fill_year_with_nas",
      "title": "Fill Up a Time Series with NAs",
      "topics": [
        "fill_year_with_nas"
      ]
    },
    {
      "page": "generate_random_ts",
      "title": "Generate a list of random time series",
      "topics": [
        "generate_random_ts"
      ]
    },
    {
      "page": "get_date_vector",
      "title": "Compute the Period Vector representation of a Decimal Time value",
      "topics": [
        "get_date_vector"
      ]
    },
    {
      "page": "getCiLegendColors",
      "title": "Helper to calculate ci colors for legends",
      "topics": [
        "getCiLegendColors"
      ]
    },
    {
      "page": "init_tsplot_theme",
      "title": "Initiate Default Theme",
      "topics": [
        "init_tsplot_print_theme",
        "init_tsplot_theme"
      ]
    },
    {
      "page": "KOF",
      "title": "KOF Barometer - Swiss Business Cycle Indicator",
      "topics": [
        "KOF"
      ]
    },
    {
      "page": "long_to_ts",
      "title": "Transform a long format data.frame of time series to a tslist",
      "topics": [
        "long_to_ts"
      ]
    },
    {
      "page": "m_to_q",
      "title": "Turn monthly series with regular NAs to quarter",
      "topics": [
        "m_to_q"
      ]
    },
    {
      "page": "overlap_sorted_ts_lists",
      "title": "Concat Time Series list wise",
      "topics": [
        "overlap_sorted_ts_lists"
      ]
    },
    {
      "page": "overlap_ts_lists_by_name",
      "title": "Resolve Overlap Listwise, helpful with SA",
      "topics": [
        "overlap_ts_lists_by_name"
      ]
    },
    {
      "page": "read_swissdata",
      "title": "Read data generated by the Swissdata project",
      "topics": [
        "read_swissdata"
      ]
    },
    {
      "page": "read_swissdata_meta",
      "title": "Read swissdata style yaml timeseries metadata",
      "topics": [
        "read_swissdata_meta"
      ]
    },
    {
      "page": "read_ts",
      "title": "Import time series data from a file.",
      "topics": [
        "read_ts"
      ]
    },
    {
      "page": "regularize",
      "title": "Turn an Irregular Time Series to a Regular, ts-Based Series",
      "topics": [
        "regularize"
      ]
    },
    {
      "page": "resolve_ts_overlap",
      "title": "Concatenate Time Series and Resolve Overlap Automatically",
      "topics": [
        "resolve_ts_overlap"
      ]
    },
    {
      "page": "set_month_to_NA",
      "title": "Set Periods to NA",
      "topics": [
        "set_month_to_NA"
      ]
    },
    {
      "page": "start_ts_after_internal_nas",
      "title": "Start a Time Series after the Last Internal NA",
      "topics": [
        "start_ts_after_internal_nas"
      ]
    },
    {
      "page": "strip_nas",
      "title": "Strip Leading / Trailing NAs from a Time Series Object",
      "topics": [
        "strip_ts_of_leading_nas",
        "strip_ts_of_trailing_nas"
      ]
    },
    {
      "page": "tsplot",
      "title": "Plot Time Series",
      "topics": [
        "tsplot"
      ]
    },
    {
      "page": "tsqm",
      "title": "Interpolate quarterly time series into monthly",
      "topics": [
        "tsqm"
      ]
    },
    {
      "page": "tstools-deprecated",
      "title": "Deprecated function(s) in tstools",
      "topics": [
        "computeDecimalTime",
        "concatTs",
        "fillupYearWitnNAs",
        "importTimeSeries",
        "initDefaultTheme",
        "overlapSortedLists",
        "overlapTslByName",
        "resolveOverlap",
        "stripLeadingNAsFromTs",
        "stripTrailingNAsFromTs",
        "tstools-deprecated",
        "writeTimeSeries"
      ]
    },
    {
      "page": "wide_to_ts",
      "title": "Transform a wide format data.frame into a tslist",
      "topics": [
        "wide_to_ts"
      ]
    },
    {
      "page": "write_ts",
      "title": "Export a list of time series to a file.",
      "topics": [
        "write_ts"
      ]
    }
  ],
  "_readme": "https://github.com/kof-ch/tstools/raw/HEAD/README.md",
  "_rundeps": [
    "data.table",
    "jsonlite",
    "lattice",
    "xts",
    "yaml",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "tstools.Rmd",
      "filename": "tstools.html",
      "title": "tstools",
      "author": "Matthias Bannert",
      "engine": "knitr::rmarkdown",
      "headings": [
        "About tstools",
        "Why yet another time series package?",
        "Graphs",
        "Basic usage",
        "Before we get started...",
        "Single time series: line chart",
        "Multiple time series (same y-axis) in one line chart",
        "Auto-scale grids are there to help you, how to configure them!",
        "Manual value ticks",
        "Fan Charts: Plotting Confidence Intervals",
        "Stacked Bar Chart",
        "Sum as line in stacked bar charts",
        "Stacked bar charts with different start and end dates",
        "Grouped bar charts",
        "Stacked Area Charts",
        "Multiple Y-axis with different scales (line charts)",
        "Multiple Y-axes with different scales (bar and line charts)",
        "Y-Grids: automatic vs. manual",
        "Using another function",
        "Tweaking the defaults: Themes",
        "Highlight windows: mark a period",
        "Add a Box Around Your Plot",
        "Change line types...",
        "Adjust the highlight window",
        "Handling missings (NA Handling)",
        "Fill up Year With NAs",
        "#Fill up Year With NAs",
        "Legends",
        "Assign Names to Single Objects",
        "Legends Based on Names of List Elements",
        "Legends: multiple columns",
        "Legends Left and Right Y-Axis",
        "Force all Legends to the Left",
        "Line Breaks in Legends",
        "Remember: auto_legend = FALSE",
        "Export your chart to .pdf",
        "Export lists of time series",
        "Csv: long format (default), wide format, transposed wide format.",
        "Frequenctly asked questions (FAQs)",
        "1. Can I combine tsplot calls with ggplot (themes)?",
        "2. I set legend_col=1 but tsplot seems to ignore it. Why is that?",
        "3. How can I change of my lines, bars and areas?"
      ],
      "created": "2016-11-29 09:26:14",
      "modified": "2024-01-18 17:20:46",
      "commits": 21
    }
  ],
  "_score": 6.797267540830717,
  "_indexed": true,
  "_nocasepkg": "tstools",
  "_universes": [
    "kof-ch",
    "kjir"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.4",
      "date": "2026-05-09T07:23:01.000Z",
      "distro": "noble",
      "commit": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
      "fileid": "281d016e4c951b8a92aad9438cabfec1d39f9836e0763db17d05a6bb76ac9ef4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.4",
      "date": "2026-05-09T07:22:51.000Z",
      "distro": "noble",
      "commit": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
      "fileid": "94525ca48c9a6439149fb908c86b40adca3619749a9a84d2d9639b8387aa1cb7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.4",
      "date": "2026-05-09T07:22:13.000Z",
      "commit": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
      "fileid": "4783fd104bffefe8e949830cc5cb311b448a5ad76f5d024c5ab0e66b73ba9a21",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.4",
      "date": "2026-05-09T07:22:20.000Z",
      "commit": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
      "fileid": "63b2d3a41bb33ee0c10bece4154e8d701f59dbf6b6cbcb99785677809af7928e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.4",
      "date": "2026-05-09T07:22:14.000Z",
      "commit": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
      "fileid": "bdf42b3622f5c3a3eed985fd6dcb80057f4493f0831d41477040447b101ffcb6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.4",
      "date": "2026-05-09T07:22:11.000Z",
      "commit": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
      "fileid": "0b9d06b7068b714929777e967daffb9779f09adb62430b4d565deb31e9e53c1c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.4",
      "date": "2026-05-09T07:23:02.000Z",
      "commit": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
      "fileid": "8fe75cc61cdd042dd3f76b428681e3b5119e37a338376a5a8d35d18166ef2078",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.4",
      "date": "2026-05-22T13:17:38.000Z",
      "commit": "421fbe5b7d764fd0d7915b8364bc231b451db0d7",
      "fileid": "59c4f2fc63feaa500a3faa0325a16351d83f89bca5070ef8be7299261cef30ed",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kof-ch/actions/runs/25595122074"
    }
  ]
}