is_wholenumber: Check if a number is integer

View source: R/utils.R

is_wholenumberR Documentation

Check if a number is integer

Description

Check if x is an integer number, differently from is.integer, which checks the type of the object x

Usage

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

Arguments

x

a scalar or a numeric vector

tol

a scalar, indicating the tolerance

Note

From the help page of function is.integer


bootstrapFP documentation built on Sept. 3, 2023, 1:08 a.m.