Learn R Programming

beautier (version 2.6.9)

is_one_na: Determines if x is one NA

Description

Determines if x is one NA

Usage

is_one_na(x)

Value

TRUE if x is one NA, FALSE otherwise

Arguments

x

the object to be determined if it is one NA

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beautier_folder()

# TRUE
  testit::assert(is_one_na(NA))

# FALSE
  testit::assert(!is_one_na(NULL))
  testit::assert(!is_one_na(42))
  testit::assert(!is_one_na("Hello"))
  testit::assert(!is_one_na(3.14))
  testit::assert(!is_one_na(c(NA, NA)))

check_empty_beautier_folder()

Run the code above in your browser using DataLab