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

Share:

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.