Skip to content

Instantly share code, notes, and snippets.

@mbannert
Last active March 2, 2024 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbannert/14fad16cc1416fe5ef86c0d0a18ae969 to your computer and use it in GitHub Desktop.
Save mbannert/14fad16cc1416fe5ef86c0d0a18ae969 to your computer and use it in GitHub Desktop.
Vintage Triangle Reproducible Example
library(timeseriesdb) # enthält Demo dataset
library(data.table)
library(tsbox) # time series toolbox von Christoph
# for better overview
tsl <- kof_ts[[20:70]]
dt <- tsbox::ts_dts(tsl)
dt_wide <- dcast(dt, time ~ id, value.var = "value")
fwrite(dt_wide, file = "triangle.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment