Learn R Programming

radiant.data (version 0.6.0)

as_hms: Convert input in hour-minute-second format to time

Description

Convert input in hour-minute-second format to time

Usage

as_hms(x)

Arguments

x
Input variable

Value

Time variable of class Period

Examples

Run this code
as_hms("12:45:00")
## Not run: 
# as_hms("12:45:00") %>% hour
# as_hms("12:45:00") %>% second
# ## End(Not run)

Run the code above in your browser using DataLab