Checks an object is string of the possible time units.
check_time_units(x, x_name = substitute(x))
x | The object to check. |
---|---|
x_name | A string of the name of the object. |
An invisible copy of x (if it doesn't throw an error).
check_time_units("hours")