Row comparison in R

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

What is an 'activity sequence' in this context ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.