isNum: isNum

Description Usage Arguments Value See Also Examples

View source: R/rpraat.R

Description

Returns TRUE / FALSE whether it is exactly 1 number (numeric or integer vector of length 1, non-missing)

Usage

1
isNum(num)

Arguments

num

variable to be tested

Value

TRUE / FALSE

See Also

isInt, isLogical, isString

Examples

1
2
3
4
5
6
7
8
9
isNum(2)
isNum(2L)
isNum(-2)
isNum(-2L)
isNum(2.1)
isNum(-2.1)
isNum(1:5)
isNum(NA_real_)
isNum(numeric(0))

rPraat documentation built on Dec. 9, 2018, 1:04 a.m.