isValidTime: check if a time is valid in 24h clock

Description Usage Arguments Value

View source: R/util.r

Description

allow leading and trailing space, optional colon in middle, 2400 is not allowed. TODO: can lubridate do this better?

Usage

1
isValidTime(tms, na.rm = FALSE)

Arguments

tms

is a vector of characters which may represent times

na.rm

logical if true, will ignore NA values, otherwise these will test as invalid.

Value

logical vector, with NA out if NA given


jackwasey/jwutil documentation built on Dec. 5, 2018, 5:31 a.m.