1.

How Will You Check If An Element 25 Is Present In A Vector?

Answer»

There are various ways to do this-

  • It can be done using the match () function- match () function RETURNS the first appearance of a particular element.
  • The other is to use %in% which returns a BOOLEAN value either true or false.
  • Is.element () function ALSO returns a Boolean value either true or false based on WHETHER it is present in a vector or not.

There are various ways to do this-



Discussion

No Comment Found