I have a dataset with worker curriculum with:
- 2 time variable: df$fromanddf$to
- 1 name variable: df$name
- 1 bureau variable: df$bureau
I would like to generate a varible df$varable which sum 1 point every time there is an intersection of time for different person in the same bureau.
I am able to do intersect(df$from, df$to) but not to condition on df$bureau.
