Convert input in year-month-day format to date

as_ymd(x)

Arguments

x

Input variable

Value

Date variable of class Date

Examples

as_ymd("2013-1-1")
#> [1] "2013-01-01"