whole.number {cwhmisc}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 adapted by Christian W. Hoffmann <c-w.hoffmann@sunrise.ch>
http://www.wsl.ch/personal_homepages/hoffmann/index_EN?-C=&n

Examples

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

[Package cwhmisc version 2.0.1 Index]