is_single_number {survobj}R 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

[Package survobj version 3.1.0 Index]