Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upStrange result tk_make_timeseries() using by = "8 day" as an argument #60
Comments
|
Thank you for the reproducible example. I'm investigating. |
|
This should be fixed now. library(tidyverse)
library(timetk)
tk_make_timeseries(start_date = "2011-01-01",
by = "8 day",
length_out = 10)
#> [1] "2011-01-01" "2011-01-09" "2011-01-17" "2011-01-25" "2011-02-02"
#> [6] "2011-02-10" "2011-02-18" "2011-02-26" "2011-03-06" "2011-03-14"Created on 2020-09-29 by the reprex package (v0.3.0) |
|
This will be added to version timetk 2.4.0 when it goes to CRAN. It's fixed in the development version. |
Hello Matt Dancho
I am exploring the function
tk_make_timeseries()using version 2.3.0 of the packagetimetkand I get the following result when usingtk_make_timeseries(start_date = "2011-01-01", by = "8 day", length_out = 10)where I attach information about my session:Created on 2020-09-28 by the reprex package (v0.3.0)
The time stamp jump from
2011-01-01to2010-12-31However I don't have the same problem with
by = "1 day",by = "2 day", ...,by = "7 day". For example withtk_make_timeseries(start_date = "2011-01-01", by = "7 day", length_out = 10):Created on 2020-09-28 by the reprex package (v0.3.0)
I get the correct time stamps