is.integer() Function: Checking Integer Values in R
R is.integer() function checks if a variable or an object is of type integer. It returns TRUE if it is an integer and FALSE otherwise. Numbers are stored in either integer or double (floating-point) data types. In R, the simple number 5 is not of type integer; it is a value of type double. To … Read more