Intermediate R
Q46 / 100

What does the "%in%" operator do?

Correct! Well done.

Incorrect.

The correct answer is B) Checks whether each element of a vector is contained in another vector, returning a logical vector

B

Correct Answer

Checks whether each element of a vector is contained in another vector, returning a logical vector

Explanation

"%in%" tests membership: "x %in% y" returns a logical vector indicating whether each element of x is found in y.

Progress
46/100