I Ivanesn New member Sep 20, 2021 #1 What will be the output of the following R code? Code: y <- c(TRUE, 2) A. [1] “TRUE” “2” B. [1] “TRUE” 2 C. [1] “0” “2” D. [1] 1 2
What will be the output of the following R code? Code: y <- c(TRUE, 2) A. [1] “TRUE” “2” B. [1] “TRUE” 2 C. [1] “0” “2” D. [1] 1 2
Đ Đặng Thị Ngọc Diệp New member Sep 20, 2021 #2 Answer: d Explanation: Here TRUE is taken as 1. Then it will give output as 1 and 2. FALSE can be taken as 0. T and F are short-hand ways to specify TRUE and FALSE. Upvote 0 Downvote
Answer: d Explanation: Here TRUE is taken as 1. Then it will give output as 1 and 2. FALSE can be taken as 0. T and F are short-hand ways to specify TRUE and FALSE.