is_timeunit: Is Time Unit?

Description Usage Arguments Value Author(s) Examples

View source: R/assertions.R

Description

Checks if a string is a time unit, i.e., 'years', 'months', 'days', 'hours', 'minutes', or 'seconds'.

Usage

1

Arguments

arg

The argument to check

Value

TRUE if the argument is a time unit, FALSE otherwise

Author(s)

Stefan Bundfuss

Examples

1
2
unit <- "days"
assertthat::assert_that(admiral:::is_timeunit(unit))

epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.