whole {cwhmisc}R Documentation

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

Description

whole checks an array whether it consists of whole, i.e. integer , numbers only (x in I).

Usage

whole(x)

Arguments

x

A numerical array.

Value

TRUE, FALSE

Author(s)

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

Examples

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

[Package cwhmisc version 6.6 Index]