I have a dataframe with a date column, and I want to convert it. With this example,
DF <- data.frame(name = paste("A", 1:5, sep = ""),
birth = c("16131", "2014-07-04", "16257", "15982", "2014-07-04"))
as.Date(DF$birth, origin = "1970-01-01")
It's returning me a message error :
Error in charToDate(x) :
la chaîne de caractères n'est pas dans un format standard non ambigu
In english, the string is in a ambiguous standard format. Thanks in advance!