Which of the following is a logical operator in R?

Which of the following is a logical operator in R?

a) *
b) |
c) ==
d) %/%

Answer:

b) |

Explanation:

The | operator is a logical operator used for OR operations in R.

Reference:

R Programming – Operators MCQ Questions and Answers

Scroll to Top