Convert input in month-day-year format to date
Convert input in month-day-year format to date
as_mdy(x)
x |
Input variable |
Use as.character if x is a factor
Date variable of class Date
as_mdy("2-1-2014") ## Not run: as_mdy("2-1-2014") %>% month(label = TRUE) as_mdy("2-1-2014") %>% week() as_mdy("2-1-2014") %>% wday(label = TRUE) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.