Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
In R, what will be the output of the following code?
x <- c(5, 10, 15)y <- c(1, 2, 3)result <- x > yprint(result)
y <- c(1, 2, 3)result <- x > yprint(result)
y <- c(1, 2, 3)
result <- x > y
print(result)
[1] 5 10 15
[1] TRUE TRUE TRUE
[1] FALSE FALSE FALSE
[1] TRUE TRUE TRUE and the class will be "logical"
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!