I have an activity col and their start and end time in col time.
How can I create another tibble with three cols - activity, start_time and end_time
library(dplyr)
time <- sort(sample(x = 1:100, size = 12, replace = FALSE))
activity <- c(rep("A", 2), rep("B", 2), rep("C", 2), rep("B", 2), rep("A", 2), rep("C", 2))
tbl <- tibble(time, activity)