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

Description Usage Arguments Value Examples

View source: R/transform.R

Description

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

Usage

1

Arguments

x

Input variable

Value

Date-time variable of class Date

Examples

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

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