Que: What will be the output of the following R code?

x<- c (“a”,” b”)
       as.numeric(x)
a. [1] 1 2
b. [1] TRUE TRUE
c. [1] NA NA (Warning message: NAs introduced by coercion)
d. [1] NAN
Answer: [1] NA NA (Warning message: NAs introduced by coercion)

Leave a Comment