Beginner R
Q33 / 100

Which operator is used for logical AND in R when working with single values in an if condition?

Correct! Well done.

Incorrect.

The correct answer is B) &&

B

Correct Answer

&&

Explanation

"&&" performs a short-circuit logical AND on single logical values, commonly used in if() conditions, whereas "&" is vectorized.

Progress
33/100