time_intervals(c(0, 3, 5))
time_intervals(data.frame(time_start = c(0, 3, 5),
time_cat = c("Time <= 3", "3 < Time <= 5",
"Time > 5")))
Run the code above in your browser using DataLab