util_is_integer: Check for integer values

View source: R/util_is_integer.R

util_is_integerR Documentation

Check for integer values

Description

This function checks if a variable is integer.

Usage

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

Arguments

x

the object to test

tol

precision of the detection. Values deviating more than tol from their closest integer value will not be deemed integer.

Value

TRUE or FALSE

See Also

is.integer

Copied from the documentation of is.integer

is.integer detects, if the storage mode of an R-object is integer. Usually, users want to know, if the values are integer. As suggested by is.integer's documentation, is.wholenumber does so.

Other robustness_functions: util_as_valid_missing_codes(), util_check_one_unique_value(), util_correct_variable_use(), util_empty(), util_ensure_character(), util_ensure_in(), util_ensure_suggested(), util_expect_scalar(), util_fix_rstudio_bugs(), util_is_numeric_in(), util_is_valid_missing_codes(), util_match_arg(), util_observations_in_subgroups(), util_only_NAs(), util_stop_if_not(), util_warn_unordered()


dataquieR documentation built on May 29, 2024, 7:18 a.m.