data.table - How to count overlaps between multiple categories in R -


i have data frame of start time, end time in unix time stamp , category, below:

enter image description here

i want find overlaps of 1 category "a" among other categories "b" & "c" , same other categories. want find how many number of categories overlapped how many times e.g. 2 categories overlapped 3 times , 3 categories overlapped 5 number of time. , average of duration overlapped shown below.

enter image description here


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -