is_single_number: Confirm is a single number

View source: R/utils.R

is_single_numberR Documentation

Confirm is a single number

Description

Evaluates if the argument is a single number

Usage

is_single_number(x)

Arguments

x

a variable to evaluate

Value

TRUE if is a single number, FALSE otherwise

Examples

is_single_number(3)  #TRUE
is_single_number(c(3,3,3)) #FALSE
is_single_number(list(a=3)) #FALSE
is_single_number("3") #FALSE

survobj documentation built on Sept. 11, 2024, 7:14 p.m.