I have a date frame with dates.
customer <-c("57","49687","4564","654654")
date <- c("11-2016","01-2017","02-2017","12-2016")
df <- data.frame(customer,date)
However, if I want to use as.POSIXct() to change the format, it exhibits a column of NAs but does not show any warning messages.
df$date <- as.POSIXct(as.character(df$date),format = "%m %Y")
How can I use properly as.POSIXct() in this setting?