Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following R code?
> x < – 1:4
> x > 2

What will be the output of the following R code?
> x < - 1:4
> x > 2
a) 1 2 3 4
b) FALSE FALSE TRUE TRUE
c) 1 2 3 4 5
d) 5 4 3 1 2 1

Answer: b
Explanation: Another operation you can do in a vectorized manner is logical comparisons.

Join The Discussion