-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index support for {lubridate} start - end
interval
#245
Comments
|
Hello @earowang, Sure *_gaps() don't know how to handle irregular temporal data, and this is the reason for my feature request here. Irregular time series with start-stop / duration are very often used in process control, industrial robot monitoring, ... So detecting gaps can be crucial on those datasets. As tsibble is a fantastic framework, I would love to have it extended to irregular time-series with start-stop, as it is a generalisation of the tsibble interval in the calculation of gaps. Expected outcome is, like in the provided example with |
start - stop
irregular tsibblestart - end
duration
start - end
durationstart - end
interval
The concept of tsibble's interval is different from {lubridate} start-end Using library(lubridate)
obs1 <- interval(ymd_hms("2018-02-26 19:15:40"), ymd_hms("2018-02-27 07:52:49"))
obs2 <- interval(ymd_hms("2018-02-27 07:58:13"), ymd_hms("2018-02-27 12:03:27"))
x <- c(obs1, obs2)
x
#> [1] 2018-02-26 19:15:40 UTC--2018-02-27 07:52:49 UTC
#> [2] 2018-02-27 07:58:13 UTC--2018-02-27 12:03:27 UTC Created on 2021-09-29 by the reprex package (v2.0.1) |
I fully agree of the missleading use of term interval here, so let's call it the In the field I work on, the alignment between start-time and next end-time depends on each situation, and is usually linked to the source timestamp precision. ( This is not a very usefull statement, I know) We can only assume that the gap cannot be raised for less than
That makes me think of a configurable |
Brief description of the problem
*_gaps
are a very usefull set of commands. And I would love to be able to use them on irregular longitudinal data withstart
andstop
index columns, liketsibbledata::nyc_bikes
.Currently, irregular interval tsibble are not supported by
*_gaps
function familyWhat output is expected
This is a manual edit :
The text was updated successfully, but these errors were encountered: