In R, whether a number is numeric or integer can be determined by class function. Generally all numbers are stored as numeric and to explicitly define a number as integer we need to specify 'L' after the number.
Example:
x <- 1
class(x)
[1] "numeric"
x <- 1L
class(x)
[1] "integer"
I hope this is what was needed. Thanks :)