powered by
Converts numeric values to positive integers with a warning.
numeric
integer
num2int(x)
an numeric vector
num2int uses as.integer functionality.
as.integer
# NOT RUN { suppressWarnings(num2int(pi) == 3L) # }
Run the code above in your browser using DataLab