| remove_short_transitions | R Documentation |
Remove Short Transitions
remove_short_transitions(cpts_var_df, cut_times, minimum_event_duration)
cpts_var_df |
Calculated changepoints data frame. |
cut_times |
Start of day transitions data frame. |
minimum_event_duration |
The minimum interval between changepoint transitions. |
Identify and remove transitions shorter than the minimum event duration.
Data frame of all transitions including start of day with short transitions removed.
changepoints <- data.frame(
time = c(1677855218, 1677855598, 1677855661, 1677855679),
index = c(86019, 86399, 62, 80),
day = c(1, 1, 2, 2)
)
cut_times <- data.frame(time = 1677855600, index = 1, day = 2)
transitions <- remove_short_transitions(changepoints, cut_times, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.