isNumberOrNULL checks if object is number (a length one numeric vector) or NULL.

isNumberOrNULL(x)

Arguments

x

object to test.

Value

Logical indicating if object is number or NULL