is.wholenumber {landsepi}R Documentation

is.wholenumber

Description

Tests if a number or vector is a whole number

Usage

is.wholenumber(x, tol = .Machine$double.eps^0.5)

Arguments

x

a number or vector or matrix

tol

double tolerance

Value

a logical of the same format as x

Examples

is.wholenumber(-5)
is.wholenumber(10)
is.wholenumber(2.5)
is.wholenumber(matrix(1:9, nrow=3))

[Package landsepi version 1.4.0 Index]