Description Usage Arguments Value Author(s) Examples
Checks if a string is a time unit, i.e., 'years', 'months', 'days', 'hours', 'minutes', or 'seconds'.
1 | is_timeunit(arg)
|
arg |
The argument to check |
TRUE
if the argument is a time unit, FALSE
otherwise
Stefan Bundfuss
1 2 | unit <- "days"
assertthat::assert_that(admiral:::is_timeunit(unit))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.