What does the %% operator do in R?

What does the %% operator do in R?

a) Integer division
b) Modulus (remainder)
c) Exponentiation
d) Multiplication

Answer:

b) Modulus (remainder)

Explanation:

The %% operator returns the remainder of the division in R.

Reference:

R Programming – Operators MCQ Questions and Answers

Scroll to Top