is_wholenumber: Checking for integer values

View source: R/is-wholenumber.r

is_wholenumberR Documentation

Checking for integer values

Description

This function tests whether all entries in a vector are integers (up to rounding error)

Usage

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

Arguments

x

A numerical vector

Value

Returns TRUE if all entries of x are whole numbers; FALSE otherwise

Examples

is_wholenumber(c(1,2,4.1))

MartinLHazelton/DynamicLatticeBasis documentation built on March 1, 2024, 3:14 a.m.