1.

How will you check if an element is present in a vector?(a) Match()(b) Dismatch()(c) Mismatch()(d) Search()

Answer» Correct choice is (a) Match()

The explanation: It can be done using the match () function- match () function returns the first appearance of a particular element. The other way is to use %in% which returns a Boolean value either true or false.


Discussion

No Comment Found

Related InterviewSolutions