The function recognises dates in formats used by INCA and Rockan.
as.Dates(x)
atomic vector
recognised date vector converted to date, otherwise x unchanged
x
as.Date
# NOT RUN { as.Dates(c(1212121212, "20000101", "2014-10-15", 5806)) # }
Run the code above in your browser using DataCamp Workspace