Skip to contents

Return TRUE if the value is a integer, not considering their variable type but the value itself.

Usage

is_integer(x)

Arguments

x

A numeric vector

Value

A boolean vector with the return from the condition check.

Examples


is_integer(1)
#> [1] TRUE

is_integer(1.1)
#> [1] FALSE