Last data update: 2014.03.03

R: Validate if a value is an integer
isIntegerR Documentation

Validate if a value is an integer

Description

Validate if the value passed to the function is an integer or not. To be considered as an integer, the value must have a length of 1. The type of value can be a integer or numerical. However, a numerical must have the same value once casted to a integer. A vector of integers will returned FALSE.

Usage

isInteger(value)

Arguments

value

an object to validate.

Value

TRUE is the parameter is a integer; otherwise FALSE

Author(s)

Astrid Deschenes

Results