powered by
Converts x to an integer. If the conversion fails or the integer is outside min and max then NA_integer_ is returned
x
min
max
NA_integer_
toInt(x, min = -Inf, max = +Inf)
a single integer value
input object
numeric: minimal value
numeric: maximal value
toInt(3.0) toInt("3.0") toInt("test")
Run the code above in your browser using DataLab