has_units | R Documentation |
Returns TRUE
if x
is either (a) unitless, or is not of class "units".
If x
is of class "units", can test whether the units are equal to u
.
has_units(x, u = NULL)
x |
(vector) to be tested |
u |
(optional) expected units |
TRUE
or FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.