L Linh Chi New member Sep 20, 2021 #1 How will you check if an element is present in a vector? A. Match() B. Dismatch() C. Mismatch() D. Search()
How will you check if an element is present in a vector? A. Match() B. Dismatch() C. Mismatch() D. Search()
H Hạnh Nguyễn Member Sep 20, 2021 #2 Answer: a 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. Upvote 0 Downvote
Answer: a 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.