isInt {smallstuff}R 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))

[Package smallstuff version 1.0.3 Index]