is.wholenumber.Rd
Function borrowed from the example section for integer
.
is.wholenumber(x, tol = .Machine$double.eps^0.5)
x | a numeric vector |
---|---|
tol | How much is |
Logical vector with same length as x
.
is.wholenumber(1) # is TRUE#> [1] TRUE#> [1] 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0is.wholenumber( x ) #--> TRUE FALSE TRUE ...#> [1] FALSE