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

1

Arguments

x

A numerical array.

Value

TRUE, FALSE

Author(s)

Bill Venables adapted by Christian W. Hoffmann <christian@echoffmann.ch>

Examples

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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.