Learn R Programming

survobj (version 3.1.1)

is_single_number: Confirm is a single number

Description

Evaluates if the argument is a single number

Usage

is_single_number(x)

Value

TRUE if is a single number, FALSE otherwise

Arguments

x

a variable to evaluate

Examples

Run this code
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

Run the code above in your browser using DataLab