powered by
These shoud just do whatever the same function does for character vectors
# S3 method for tod length(x)# S3 method for tod [(x, i, ...)# S3 method for tod [(x, i, ...) <- value# S3 method for tod [[(x, i, ...)# S3 method for tod [[(x, i, ...) <- value# S3 method for tod c(...)
# S3 method for tod [(x, i, ...)
# S3 method for tod [(x, i, ...) <- value
# S3 method for tod [[(x, i, ...)
# S3 method for tod [[(x, i, ...) <- value
# S3 method for tod c(...)
as expected
vector of class tod
tod
integer of indices
to match the generics' arguments
of type tod. to be inserted
Dr. Andreas Leha
times <- c("8:53", NA, "22:30") times <- as.tod(times) length(times) times[1] times[1] <- "07:00" c(times, times)
Run the code above in your browser using DataLab