powered by
convertInteger(x)
x
str(convertInteger(1.0)) str(convertInteger(1.3)) str(convertInteger(c(1.0, 2.0))) str(convertInteger("foo"))
Run the code above in your browser using DataLab