Learn R Programming

radiant.data (version 1.0.6)

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
# NOT RUN {
as_hms("12:45:00")
# }
# NOT RUN {
as_hms("12:45:00") %>% hour
as_hms("12:45:00") %>% second
# }

Run the code above in your browser using DataLab