Strptime function in R returns null values. I have a column in my dataset which has time in the foll format "2000" "1830" and so on.....
I am trying to give a time format to a column and get the date and time in the below specified format "%Y-%m-%d %H:%M:%S"
data$date <- strptime(data$date, '%Y-%m-%d %H:%M')
when I run the code I am getting NA's