.is_allNA {infixit}R Documentation

Tests if a vector is entirely comprised of NAs

Description

This function tests if a passed object is entirely comprised of NA values.

Usage

.is_allNA(x)

Arguments

x

The object to test if is entirely comprised of NA values

Details

This function is exported in order to provide one of the default tests for the ⁠%|||%⁠ function and is not really intended for use outside of that context.

Value

A boolean (TRUE or FALSE)

Examples

{
  .is_allNA(c(NA,NA,"NA")) # Will return FALSE
}

[Package infixit version 0.3.1 Index]