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