Learn R Programming

quickcode (version 1.0.6)

not.integer: Not an integer

Description

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

Usage

not.integer(x)

Value

a boolean value to indicate if entry is an integer

Arguments

x

vector entry

Examples

Run this code
is.integer(78L) #TRUE
not.integer(78L) #FALSE

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

Run the code above in your browser using DataLab