Description Usage Arguments Value Examples
is_float()
checks whether an input vector or value is a
numeric non-integer (double), depending on fractional parts of the value(s).
is_whole()
does the opposite and checks whether an input vector
is a whole number (without fractional parts).
1 2 3 |
x |
A value, vector or data frame. |
For is_float()
, TRUE
if x
is a floating value
(non-integer double), FALSE
otherwise (also returns FALSE
for character vectors and factors). For is_whole()
, TRUE
if x
is a vector with whole numbers only, FALSE
otherwise
(returns TRUE
for character vectors and factors).
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.