Examveda

What will be the output of the following R code?
> x <- c(1, 2, NA, 4, NA, 5)
> bad <- is.na(x)
> print(bad)

A. FALSE FALSE FALSE FALSE TRUE FALSE

B. FALSE TRUE TRUE FALSE TRUE FALSE

C. FALSE FALSE TRUE FALSE TRUE FALSE

D. FALSE TRUE TRUE TRUE TRUE FALSE

Answer: Option C


This Question Belongs to R Programming >> Data Structures In R Programming

Join The Discussion

Related Questions on Data Structures in R Programming