is_integerish

0th

Percentile

Is a vector integer-like?

These predicates check whether R considers a number vector to be integer-like, according to its own tolerance check (which is in fact delegated to the C library). This function is not adapted to data analysis, see the help for is.integer() for examples of how to check for whole numbers.

Usage
is_integerish(x, n = NULL)
is_bare_integerish(x, n = NULL)
is_scalar_integerish(x)
Arguments
x
Object to be tested.
n
Expected length of a vector.
See Also

is_bare_numeric() for testing whether an object is a base numeric type (a bare double or integer vector).

Aliases
  • is_integerish
  • is_bare_integerish
  • is_scalar_integerish
Examples
is_integerish(10L)
is_integerish(10.0)
is_integerish(10.000001)
is_integerish(TRUE)
Documentation reproduced from package rlang, version 0.0.0.9000, License: GPL-3

Community examples

Looks like there are no examples yet.