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 June 2, 2022, 5:06 p.m.