I am working with summarized data that counts the time in minutes and then hours (no days). How do I make it numeric in a way that it can be plotted on a chart.
Below is a sample of how the data looks like in the format of hh:mm
set.seed(121)
df <- data.frame(hspt = letters[1:3],
Jan = paste0(sample(1:1000, 3, replace=TRUE),":",
stringr::str_pad(sample(0:60, 3, replace=TRUE), 2, pad = "0")),
Feb = paste0(sample(1:1000, 3, replace=TRUE),":",
stringr::str_pad(sample(0:60, 3, replace=TRUE), 2, pad = "0")),
Mar = paste0(sample(1:1000, 3, replace=TRUE),":",
stringr::str_pad(sample(0:60, 3, replace=TRUE), 2, pad = "0")),
stringsAsFactors = F)
df
hspt Jan Feb Mar
1 a 763:28 255:37 289:49
2 b 551:37 947:07 136:46
3 c 422:14 783:29 618:56