Learn R Programming

radiant.data (version 1.4.5)

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)

Value

Time variable of class Period

Arguments

x

Input variable

Examples

Run this code
as_hms("12:45:00")
if (FALSE) {
as_hms("12:45:00") %>% hour
as_hms("12:45:00") %>% second
}

Run the code above in your browser using DataLab