as_mdy: Convert input in month-day-year format to date

Description Usage Arguments Details Value Examples

View source: R/transform.R

Description

Convert input in month-day-year format to date

Usage

1
as_mdy(x)

Arguments

x

Input variable

Details

Use as.character if x is a factor

Value

Date variable of class Date

Examples

1
2
3
4
5
6
7
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)

radiant-rstats/radiant.data documentation built on Nov. 13, 2018, 6:57 a.m.