Learn R Programming

upstartr (version 0.1.2)

not.na: Opposite of is.na

Description

Given a vector, returns TRUE for all entities that aren't NA.

Usage

not.na(x)

Value

A vector of elements that aren't NA

Arguments

x

A vector to check for NAs against.

Examples

Run this code
not.na(c(1, NA, 2, NA))

Run the code above in your browser using DataLab