powered by
Checks whether the given input is a scalar integer or not.
integer
is.int(x)
A boolean, TRUE or FALSE.
An object that we want to know if it is an integer.
Chloe Serre-Combe, Amelie Vernay
If x is a scalarinteger, is.int(x) returns TRUE, else, returns FALSE.
x
if (FALSE) { # basic example A <- 3 B <- 3.4 C <- rep(3, 10) is.int(A) # returns TRUE is.int(B) # returns FALSE is.int(C) # returns FALSE }
Run the code above in your browser using DataLab