toInt | R Documentation |
Converts x
to an integer.
If the conversion fails or the integer is outside min
and max
then NA_integer_
is returned
toInt(x, min = -Inf, max = +Inf)
x |
input object |
min |
numeric: minimal value |
max |
numeric: maximal value |
a single integer value
toInt(3.0)
toInt("3.0")
toInt("test")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.