I try to find missing timestamp. Here are a lot of solutions to fix this single problem. Nevertheless I also want to find "where" timestamp by ID is missing.
So for example the test-dataset would look like this:
elemuid timestamp
1232 2018-02-10 23:00:00
1232 2018-02-10 23:01:00
1232 2018-02-10 22:58:00
1674 2018-02-10 22:40:00
1674 2018-02-10 22:39:00
1674 2018-02-10 22:37:00
1674 2018-02-10 22:35:00
And the solution should be like:
elemuid timestamp
1232 2018-02-10 22:59:00
1674 2018-02-10 22:38:00
1674 2018-02-10 22:36:00
My problem is that I can only use dplyr
, because I would like to use this code also in sparklyr
.
I would be really happy for your help!