Description Usage Arguments Value Examples
Return the start and end time index of each chunk
1 | getborders(df, max_gap = 600, min_len = 10, ind_time = F)
|
df |
a data frame with one column of "time" and of class POSIXct |
max_gap |
maximum time gap allowed to be counted as one chunk [s] |
min_len |
minimum length of a chunk |
ind_time |
a logical value, if TRUE, time index will be returned |
a data frame with two columns: - start: start time index of each chunk - end: end time index of each chunk
1 2 3 4 5 | ## Not run:
br1 <- getborders(df)
br2 <- getborders(df, max_gap = 100, min_len = 0, ind_time = T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.