Store value 5 in x
x=5 x
## [1] 5
class(x)
## [1] "numeric"
x=as.integer(x) class(x)
## [1] "integer"