Learn R Programming

PVplr (version 0.1.2)

all_na: function to test if an entire column is NA

Description

This function tests for completely NA columns

Usage

all_na(x)

Value

Returns boolean TRUE if column is all NA, FALSE if not

Arguments

x

any column in a dataframe

Examples

Run this code
test <- all_na(c(NA, "a", NA))

Run the code above in your browser using DataLab