tidyverts / feasts

Feature Extraction And Statistics for Time Series
https://feasts.tidyverts.org/
295 stars 23 forks source link

Features not computed #79

Closed robjhyndman closed 4 years ago

robjhyndman commented 4 years ago
library(tsibble)
library(lubridate)
#> 
#> Attaching package: 'lubridate'
#> The following objects are masked from 'package:tsibble':
#> 
#>     interval, new_interval
#> The following object is masked from 'package:base':
#> 
#>     date
library(tsibbledata)
library(feasts)
#> Loading required package: fabletools
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:lubridate':
#> 
#>     intersect, setdiff, union
#> The following object is masked from 'package:tsibble':
#> 
#>     id
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

gafa_stock %>%
  filter(Symbol == "GOOG", year(Date) == 2015) %>%
  mutate(trading_day = row_number()) %>%
  update_tsibble(index = trading_day, regular = TRUE) %>% 
  features(Close, ljung_box, lag=10)
#> Warning: 1 error encountered for feature 1
#> [1] 'ts' object must have one or more observations
#> # A tibble: 1 x 1
#>   Symbol
#>   <chr> 
#> 1 GOOG

Created on 2019-11-06 by the reprex package (v0.3.0)

Session info ``` r devtools::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R version 3.6.1 (2019-07-05) #> os Ubuntu 19.10 #> system x86_64, linux-gnu #> ui X11 #> language en_AU:en #> collate en_AU.UTF-8 #> ctype en_AU.UTF-8 #> tz Australia/Melbourne #> date 2019-11-06 #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date lib source #> anytime 0.3.6 2019-08-29 [1] CRAN (R 3.6.1) #> assertthat 0.2.1 2019-03-21 [3] CRAN (R 3.5.3) #> backports 1.1.5 2019-10-02 [1] CRAN (R 3.6.1) #> callr 3.3.2 2019-09-22 [1] CRAN (R 3.6.1) #> cli 1.1.0 2019-03-19 [3] CRAN (R 3.5.3) #> colorspace 1.4-1 2019-03-18 [3] CRAN (R 3.6.1) #> crayon 1.3.4 2017-09-16 [3] CRAN (R 3.5.0) #> desc 1.2.0 2018-05-01 [3] CRAN (R 3.5.0) #> devtools 2.2.1 2019-09-24 [1] CRAN (R 3.6.1) #> digest 0.6.22 2019-10-21 [1] CRAN (R 3.6.1) #> dplyr * 0.8.3 2019-07-04 [3] CRAN (R 3.6.1) #> ellipsis 0.3.0 2019-09-20 [1] CRAN (R 3.6.1) #> evaluate 0.14 2019-05-28 [3] CRAN (R 3.6.0) #> fabletools * 0.1.1 2019-09-16 [1] CRAN (R 3.6.1) #> fansi 0.4.0 2018-10-05 [3] CRAN (R 3.5.1) #> feasts * 0.1.1.9000 2019-10-23 [1] Github (tidyverts/feasts@47b7022) #> fs 1.3.1 2019-05-06 [3] CRAN (R 3.6.1) #> generics 0.0.2 2018-11-29 [3] CRAN (R 3.5.1) #> ggplot2 3.2.1 2019-08-10 [1] CRAN (R 3.6.1) #> glue 1.3.1 2019-03-12 [3] CRAN (R 3.5.3) #> gtable 0.3.0 2019-03-25 [3] CRAN (R 3.6.1) #> highr 0.8 2019-03-20 [3] CRAN (R 3.6.1) #> htmltools 0.4.0 2019-10-04 [1] CRAN (R 3.6.1) #> knitr 1.25.4 2019-10-26 [1] Github (yihui/knitr@351ba82) #> lazyeval 0.2.2 2019-03-15 [3] CRAN (R 3.5.3) #> lifecycle 0.1.0 2019-08-01 [1] CRAN (R 3.6.1) #> lubridate * 1.7.4 2018-04-11 [3] CRAN (R 3.5.0) #> magrittr 1.5 2014-11-22 [3] CRAN (R 3.5.0) #> memoise 1.1.0 2017-04-21 [3] CRAN (R 3.5.0) #> munsell 0.5.0 2018-06-12 [3] CRAN (R 3.5.0) #> pillar 1.4.2 2019-06-29 [3] CRAN (R 3.6.1) #> pkgbuild 1.0.6 2019-10-09 [1] CRAN (R 3.6.1) #> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 3.6.1) #> pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.6.1) #> prettyunits 1.0.2 2015-07-13 [3] CRAN (R 3.5.0) #> processx 3.4.1 2019-07-18 [3] CRAN (R 3.6.1) #> ps 1.3.0 2018-12-21 [3] CRAN (R 3.5.2) #> purrr 0.3.3 2019-10-18 [1] CRAN (R 3.6.1) #> R6 2.4.0 2019-02-14 [3] CRAN (R 3.5.2) #> Rcpp 1.0.2 2019-07-25 [3] CRAN (R 3.6.1) #> remotes 2.1.0 2019-06-24 [1] CRAN (R 3.6.1) #> rlang 0.4.1 2019-10-24 [1] CRAN (R 3.6.1) #> rmarkdown 1.16.2 2019-10-31 [1] Github (rstudio/rmarkdown@7dc3cbc) #> rprojroot 1.3-2 2018-01-03 [3] CRAN (R 3.5.0) #> scales 1.0.0 2018-08-09 [3] CRAN (R 3.5.1) #> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.6.1) #> stringi 1.4.3 2019-03-12 [3] CRAN (R 3.5.3) #> stringr 1.4.0 2019-02-10 [3] CRAN (R 3.5.2) #> testthat 2.2.1 2019-07-25 [3] CRAN (R 3.6.1) #> tibble 2.1.3 2019-06-06 [3] CRAN (R 3.6.0) #> tidyr 1.0.0 2019-09-11 [1] CRAN (R 3.6.1) #> tidyselect 0.2.5 2018-10-11 [3] CRAN (R 3.5.1) #> tsibble * 0.8.5 2019-11-03 [1] CRAN (R 3.6.1) #> tsibbledata * 0.1.0 2019-06-15 [1] CRAN (R 3.6.1) #> usethis 1.5.1 2019-07-04 [1] CRAN (R 3.6.1) #> utf8 1.1.4 2018-05-24 [3] CRAN (R 3.5.0) #> vctrs 0.2.0 2019-07-05 [3] CRAN (R 3.6.1) #> withr 2.1.2 2018-03-15 [3] CRAN (R 3.5.0) #> xfun 0.10 2019-10-01 [1] CRAN (R 3.6.1) #> yaml 2.2.0 2018-07-25 [3] CRAN (R 3.5.1) #> zeallot 0.1.0 2018-01-28 [3] CRAN (R 3.5.0) #> #> [1] /home/robjhyndman/R/x86_64-pc-linux-gnu-library/3.6 #> [2] /usr/local/lib/R/site-library #> [3] /usr/lib/R/site-library #> [4] /usr/lib/R/library ```
mitchelloharawild commented 4 years ago

This is resolved in dev fabletools as per https://github.com/tidyverts/feasts/issues/74 I've fixed a version incompatibility for tsibble CRAN/dev and fabletools dev in https://github.com/tidyverts/fabletools/commit/80aa54b0b572fac7c957e919d6eae184f464c3b9