Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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)

radiant.data

Data Menu for Radiant: Business Analytics using R and Shiny

v1.3.12
AGPL-3 | file LICENSE
Authors
Vincent Nijs [aut, cre]
Initial release
2020-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.