Learn R Programming

radiant.data (version 0.6.0)

as_ymd_hms: Convert input in year-month-day-hour-minute-second format to date-time

Description

Convert input in year-month-day-hour-minute-second format to date-time

Usage

as_ymd_hms(x)

Arguments

x
Input variable

Value

Date-time variable of class Date

Examples

Run this code
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)

Run the code above in your browser using DataLab