Learn R Programming

rkeops (version 2.2.2)

is.int: Scalar integer test.

Description

Checks whether the given input is a scalar integer or not.

Usage

is.int(x)

Value

A boolean, TRUE or FALSE.

Arguments

x

An object that we want to know if it is an integer.

Author

Chloe Serre-Combe, Amelie Vernay

Details

If x is a scalarinteger, is.int(x) returns TRUE, else, returns FALSE.

Examples

Run this code
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