Learn R Programming

cwhmisc (version 6.0)

whole.number: Check an array on whole numbers (x in I).

Description

whole.number checks an array whether it consists of whole numbers only (x in I).

Usage

whole.number(x)

Arguments

x
A numerical array.

Value

TRUE, FALSE

Examples

Run this code
whole.number(c(pi,2,3)) # FALSE
whole.number(c(1,2,3))  # TRUE

Run the code above in your browser using DataLab