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

> x <- 0:6
> as.logical(x)
a. FALSE TRUE TRUE TRUE TRUE TRUE TRUE
b. “0” “1” “2” “3” “4” “5” “6”
c. 0 1 2 3 4 5 6
d. 6 5 5 3 2 1
Answer: FALSE TRUE TRUE TRUE TRUE TRUE TRUE

Leave a Comment