Learn R Programming

jwutil (version 1.1.1)

allIsInteger: check whether vector represents all integer values, not that the same as is.integer

Description

check whether all the items of input vector are integer as.integer

Usage

allIsInteger(x, tol = 1e-09, na.rm = TRUE)

Arguments

x

is a vector to be tested

tol

single numeric, default if less than 1e-9 from an integer then considered an integer.

na.rm

single logical, passed on to all

Value

logical scalar