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

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
whole(x)

Arguments

x

A numerical array.

Value

TRUE, FALSE

Author(s)

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

Examples

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

cwhmisc documentation built on May 1, 2019, 7:55 p.m.