Checks an object is string of the possible time units.

check_time_units(x, x_name = substitute(x))

Arguments

x

The object to check.

x_name

A string of the name of the object.

Value

An invisible copy of x (if it doesn't throw an error).

Examples

check_time_units("hours")