Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

whole

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

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

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.