Skip to contents

Opposite of is.integer(). Check if entry is not an integer

Usage

not.integer(x)

Arguments

x

vector entry

Value

a boolean value to indicate if entry is an integer

Examples

is.integer(78L) #TRUE
#> [1] TRUE
not.integer(78L) #FALSE
#> [1] FALSE

not.integer(23.43) # TRUE
#> [1] TRUE
not.integer(45L) # FALSE
#> [1] FALSE
if(not.integer(4L)) message("yes") # NULL