I have a file that formats time stamps like 25/03/2011 9:15:00 p.m.
25/03/2011 9:15:00 p.m.
How can I parse this text to a Date-Time class with either strptime or as.POSIXct?
Just came across this, as another option you can use stringr package.
stringr
library(stringr) data$date2 <- str_sub(data$date, end = -4) # this removes the punctuation but holds onto the A/P values data$date2 <- str_c(data$date2, 'm') # adds the required m