Hi there,
I have the following problem using times() and ifelse().
t0 <- c(rep("NA", 7))
theData <- times(c("07:36:00","08:09:00","10:28:00","13:28:00","16:29:00",
"19:30:00","22:29:00"))
t0 <- ifelse(length(theData)==0, t0,theData)
In this case, R gives this, instead of theData: