Learn R Programming

kitagawa (version 1.1-1)

.nullchk: Quickly check for NULL and NA

Description

Checks NULL and NA status, and raises an error if TRUE.

Usage

.nullchk(X)

Arguments

X
something to be checked (vector, scalar, ...)

Details

This function is not likely to be needed by the user.

Examples

Run this code
.nullchk(1:10) # OK
.nullchk(NULL) # error
.nullchk(c(1:10,NULL)) # error
.nullchk(NA) # error
.nullchk(c(1:10,NA)) # error

Run the code above in your browser using DataLab