Learn R Programming

radiant.data (version 0.8.1)

as_mdy: 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

Value

Date variable of class Date

Details

Use as.character if x is a factor

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab