I have the following vector containing time stamps. These time stamps are recorded as factors.
times<-as.factor(c("8:24", "9:17","11:52","1:49","9:36"))
I want to convert them in to time objects using the chron
package. And I have used the following code
library(chron)
chron(as.character(times), format = "h:m")
however, when I run this it states
Error in widths[, fmt$periods, drop = FALSE] : subscript out of bounds
how do I get around this issue