as_mdy {radiant.data} | R Documentation |
Convert input in month-day-year format to date
Description
Convert input in month-day-year format to date
Usage
as_mdy(x)
Arguments
x |
Input variable |
Details
Use as.character if x is a factor
Value
Date variable of class Date
Examples
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)
[Package radiant.data version 1.6.6 Index]