isInt: isInt

Description Usage Arguments Value See Also Examples

View source: R/rpraat.R

Description

Returns TRUE / FALSE whether it is exactly 1 integer number (in fact, the class can be numeric but the number must be integer), non-missing

Usage

1
isInt(num)

Arguments

num

variable to be tested

Value

TRUE / FALSE

See Also

isNum, isLogical, isString

Examples

1
2
3
4
5
6
7
8
9
isInt(2)
isInt(2L)
isInt(-2)
isInt(-2L)
isInt(2.1)
isInt(-2.1)
isInt(1:5)
isInt(NA_integer_)
isInt(integer(0))

rPraat documentation built on Feb. 28, 2021, 1:06 a.m.