I am working with data from logs where the data is in the following format:
V1
1 TASK [include_vars]
2 Thursday 05 April 2018 20:21:52 -0500 (0:00:00.429) 0:00:00.429
3 TASK [include_vars]
4 Thursday 05 April 2018 20:21:53 -0500 (0:00:00.289) 0:00:00.718
5 TASK [include_vars]
6 Thursday 05 April 2018 20:21:53 -0500 (0:00:00.270) 0:00:00.988
Each timestamp corresponds to the task above it. What I need is to move each timestamp to a new column and up a row (so that it is in line with the task it corresponds to). I have tired using dcast, unstack, spread, etc. but since this is a single volumn vector, I am not sure how to make this work.
Thanks!
p.s. This data is already somewhat formatted/filtered on so I don't think there is a different approach on how I imported it - but I am open to suggestions.