Good day people,
i am currently working on how to differentiate activity sequences based on the time they occur. i have a data frame that looks like the picture below. i want to output similar activity sequences with time difference greater than 5. how do i do this?
| event | time |
|---|---|
| f | 1 |
| k | 2 |
| s | 2 |
| a | 3 |
| a | 3 |
| j | 3 |
| w | 3 |
| b | 4 |
| c | 4 |
| c | 4 |
| a | 4 |
| s | 4 |
| d | 5 |
| v | 5 |
| b | 5 |
| a | 5 |
| a | 6 |
| b | 6 |
| c | 6 |
| a | 6 |