| split_ts | R Documentation | 
Split time series data at gaps
split_ts(data, max_interval, min_ts_length = 0, units = "min", tz = NULL)
data | 
 Data frame with columns 'ID' and 'time', and any other data variables  | 
max_interval | 
 Longest permissible time interval within a
time series, in minutes The time series will be split where
there are gaps longer than   | 
min_ts_length | 
 Minimum permissible length for a time series, in minutes. Time series shorter than this will be excluded from the output data frame. Defaults to 0, i.e., all time series are kept.  | 
units | 
 Time unit (default: "min")  | 
tz | 
 Time zone  | 
Data frame with same columns as input, plus a column 'ID_split' for the ID of the time series segments after splitting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.