is_whole: Integer Check

Description Usage Arguments Value Author(s) Examples

View source: R/ints.R

Description

Checks whether the submitted value is an integer

Usage

1

Arguments

x

A numeric value to check to see if it is an integer.

Value

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

Author(s)

James Balamuta

Examples

1
2
3
4
5
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))

jjb documentation built on Jan. 8, 2020, 5:07 p.m.