Learn R Programming

descsuppR (version 1.2)

hours.tod: Extract the hours/minutes Component of time-of-day

Description

Extract the hours/minutes Component of time-of-day

Usage

hours.tod(x)

minutes.tod(x)

Value

numeric vector of length length(x) with hours/minutes

Arguments

x

vector of class tod

Author

Dr. Andreas Leha

Examples

Run this code
times <- as.tod(c("8:53", NA, "22:30"))
hours.tod(times)
minutes.tod(times)

Run the code above in your browser using DataLab