isInt: Determine if the Input contains Integers

View source: R/isInt.R

isIntR Documentation

Determine if the Input contains Integers

Description

Determine if numbers in a vector are integers (not just of integer type)

Usage

isInt(x, inf = TRUE)

Arguments

x

integer or numeric type vector

inf

logical field answering whether an infinite value should be considered an integer (default TRUE)

Value

TRUE for each value in x that is an integer, FALSE otherwise

Examples

isInt(c(3,3.23,Inf))

smallstuff documentation built on May 29, 2024, 2:19 a.m.