Learn R Programming

naniar (version 0.6.1)

test_if_null: Test if the input is NULL

Description

Test if the input is NULL

Usage

test_if_null(x)

Value

an error if input (x) is NULL

Arguments

x

object

Examples

Run this code
if (FALSE) {
# success
test_if_null(airquality)
#fail
my_test <- NULL
test_if_null(my_test)
}

Run the code above in your browser using DataLab