Question: what is the difference between int and num in r?
Answer: As you can see "integer" is a subset of "numeric". Integers only go to a little more than 2 billion, while the other numerics can be much bigger. They can be bigger because they are stored as double precision floating point numbers. ... For example, 1:5 creates an integer vector of numbers from 1 to 5.