I'm using the time data type - time vector. I trying to get the seconds, minutes and hours to turn up individual. I know that if use [[1]] it should give me seconds but it gives the whole date and time and when I do [[2]] it comes with an error.
time_vector
[1] "2021-10-28 12:46:48 BST"
time_vector[1]
[1] "2021-10-28 12:46:48 BST"
time_vector[[1]]
[1] "2021-10-28 12:46:48 BST"
time_vector[[2]]
Error in FUN(X[[i]], ...) : subscript out of bounds