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

y <- c(TRUE, 2)
a. [1] “TRUE” “2”
b. [1] “TRUE” 2
c. [1] “0” “2”
d. [1] 1 2
Answer: [1] 1 2

Leave a Comment