whole.number {cwhmath}R Documentation

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

Author(s)

Bill Venables

Examples

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

[Package cwhmath version 2.0 Index]