Questions tagged [tsibble]

R package for tidy time series (tsibble: Tidy Temporal Data Frames and Tools)

tsibble: Tidy Temporal Data Frames and Tools

Provides a 'tbl_ts' class (the 'tsibble') for temporal data in an data- and model-oriented format.

The 'tsibble' provides tools to easily manipulate and analyse temporal data, such as filling in time gaps, aggregating over calendar periods, and etc.

119 questions
0
votes
1 answer

How can I implement both hourly and weekly seasonality in Fable - R Package using season() function?

I have to create hourly forecasts for 2000 different time series. And I have strong hourly and weekly seasonality in my series. To deal with hourly seasonality I used season("day") option. However, I suppose season("week") would create 168 weekly…
omzeybek
  • 305
  • 2
  • 14
0
votes
1 answer

After add new code, things cannot knit out

I met a wired situation. After add new code The code cannot knit out. function_name <- function (...) { output <- if (output_format == "list") { evolved.ts } else if (output_format == "tsibble") { as.tsibble(evolved.ts) } …
user13971133
0
votes
1 answer

BoxCox.lambda not returning same results as fable features

I am comparing the results of the automatic lambda selection function BoxCox.lambda from the forecast package VS the fable package automatic lambda selection features As you can see below, the two functions did not return the same results. Moreover,…
Bssm16
  • 3
  • 1
0
votes
1 answer

How can we detect & remove variables with inbetween NAs and calculate the ACF on multiple time series?

Here is my toy time series data: library(tidyverse); library(tsibble); library(feasts) df <- tibble::tribble( ~date, ~A, ~B, ~C, "1/31/2010", NA, 0.017, NA, "2/28/2010", NA, 0.027, NA, "3/31/2010", …
Geet
  • 2,515
  • 2
  • 19
  • 42
0
votes
1 answer

Why can't I use drop_na on a tsibble?

MRE: library(tsibble) #> Warning in system("timedatectl", intern = TRUE): running command 'timedatectl' #> had status 1 library(tidyr) my_tsibble <- structure(list(date = structure(c(18388, 18389, 18390, 18391, …
DeltaIV
  • 4,773
  • 12
  • 39
  • 86
0
votes
2 answers

Create time series cross validation slices by key in the tidyverts package

Is there a way to create time series cross validation sets by key using the tidyverts package? I can't seem to get it right. Below is a reprex of my attempt. The example involves creating time series cross-validation (slices with 1 step ahead) for…
Punxsutawney
  • 81
  • 1
  • 4
0
votes
1 answer

auto.arima for daily data forecasts dates too much into the future

I have daily data of visitors, which I'm trying to forecast using auto.arima. The problem is that the dataset ends in 2017-09-10, but the date for the first forecast is in 2025. I would like the model to make forecasts h days into the future, but it…
kkz
  • 306
  • 1
  • 8
0
votes
1 answer

How to read xlsx file into R and convert it into tsibble object?

I would like to read a xlsx file into R, and create a tsibble object. It looks like this: https://docs.google.com/spreadsheets/d/119RXtTVJbHYeivorEtApbxQrLkLXolZdOc0kgCXFljQ/edit?usp=sharing How can I do it ?
0
votes
1 answer

Tsibble year week function returns in undesired behaviour

I try to convert a date column with missing values into year-week format with tsibble. Doing this returns either in parsing failures or numeric outcomes. The final output shall look like this: 2020 W1, 2020 W6. Is there a way to solve this using the…
rkraft
  • 495
  • 4
  • 16
0
votes
0 answers

Why does fabletools::model() throw an error with this synthetic data?

[2019-01-02 Update] Removed tsibble development and installed tsibble_0.8.5 from CRAN. Session Info R version 3.6.2 (2019-12-12) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 19.10 tsibble_0.8.5 fable_0.1.1 …
0
votes
1 answer

Only NaNs in accuracy table in forecasts using fable package

I have this data, > dput(dt_tsbl) structure(list(series.id = c(225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L, 225L,…
JontroPothon
  • 127
  • 1
  • 9
0
votes
1 answer

Tsibble - Rolling window functions by group

I have a dateset like this dummy sample. It contains two months data for digital user activity. df <- tibble::tribble( ~date, ~user_id, ~app_id, ~total_usage, 20190701, "18120439-aa", 383, 223, 20190702, "18120439-aa", …
DanG
  • 689
  • 1
  • 16
  • 39
-1
votes
1 answer

customize the display format of tsibble yearmonth column?

Can I customize the display format of the time series column in tsibble ? yearmonth allways like %Y %m,but i would like change the default format to %m-%y all over one chunk tsibble::format not working
Zeno Shuai
  • 109
  • 3
-1
votes
1 answer

Constructing yearweek from year (double) and week number (character)

Here's a sample of my data # A tibble: 300 x 5 year week department_id media_tpv mediana_tpv 1 2019 00 3 90.4 65 2 2019 00 5 194. …
Pedro Cavalcante
  • 414
  • 4
  • 14
1 2 3 4 5 6 7
8