Learn R Programming

quickcode (version 1.0.6)

not.na: Not NA

Description

Opposite of is.na(). Check if entry is not NA

Usage

not.na(x)

Value

a boolean value to indicate if entry is NA

Arguments

x

vector entry

Examples

Run this code
not.na(NA) # FALSE
not.na(NULL) # logical(0)
if(not.na(45)) message("something") # TRUE

Run the code above in your browser using DataLab