Missing values versus missing-looking text

A supplier export contains the literal text "NA", a genuine missing character value, and an empty string. An analyst recreates these entries in R:


R
region <- c("NA", NA_character_, "")
is.na(region)


What logical vector does the final expression return?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More R Data Types Questions: