I am trying to remove the seconds from a column of hours in POSIXct format:
#\"2016-04-02 10:33:45 COT\" \"2016-04-02 22:19:24 COT\" #\"2016-04-09 17:47:13 C
If you want to round date to minutes you can do this:
x <- as.POSIXlt(c("2016-04-02 10:33:45 COT")) res <-as.POSIXlt(floor(as.double(x) / 60) * 60, origin = '1970-01-01') res # "2016-04-02 10:33:00 BST"