Learn R Programming

naniar (version 0.6.0)

test_if_null: Test if the input is NULL

Description

Test if the input is NULL

Usage

test_if_null(x)

Arguments

x

object

Value

an error if input (x) is NULL

Examples

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

Run the code above in your browser using DataLab