Learn R Programming

simts (version 0.2.2)

is.whole: Integer Check

Description

Checks whether the submitted value is an integer

Usage

is.whole(x)

Value

A boolean value indicating whether the value is an integer or not.

Arguments

x

A numeric value.

Author

James Balamuta

Examples

Run this code
is.whole(2.3)
is.whole(4)
is.whole(c(1,2,3))
is.whole(c(.4,.5,.6))
is.whole(c(7,.8,9))

Run the code above in your browser using DataLab