Question: What does the % in % comparison operator do ? For example: year % in % c ( 1 9 4 0 , 1 9

What does the %in% comparison operator do? For example:
year %in% c(1940,1941)
Group of answer choices
Performs a mathematical calculation between the variable and the values specified in parentheses.
Assigns the values specified in parentheses to the variable.
Checks whether the value of the variable matches any of the values specified in the parentheses.
Checks if the value of the variable is equal to another variable.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!