as_ymd_hms | R Documentation |
Convert input in year-month-day-hour-minute-second format to date-time
as_ymd_hms(x)
x |
Input variable |
Date-time variable of class Date
as_ymd_hms("2014-1-1 12:15:01")
## Not run:
as_ymd_hms("2014-1-1 12:15:01") %>% as.Date()
as_ymd_hms("2014-1-1 12:15:01") %>% month()
as_ymd_hms("2014-1-1 12:15:01") %>% hour()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.