I was using a function that requires input as integers.
So I have been trying to read up on making things integers:
y <- 3.14
as.integer(y)
[1] 3
Update to Dason's answer (don't have enough reputation to make a comment):
The int64 package has now been deprecated, however there is now a package called bit64. I was able to achieve the same result using it. The syntax changed only slightly from "as.int64" to "as.integer64".
I.e.
library(bit64)
as.integer64(.Machine$integer.max) + 1L