# create a vector with id and names
vector=c(1,2,3,4,5,"sravan","boby","ojaswi","gnanesh","rohith")
# display vector
print(vector)
print("=======")
# get the data - "sravan","rohith",3 from
# the vector
print(vector[vector %in% c("sravan","rohith",3)])
print("=======")
# get the data - "sravan","ojaswi",3,1,2 from
# the vector
print(vector[vector %in% c("sravan","ojaswi",3,1,2)])
print("=======")
# get the data - 1,2,3,4,5 from the vector
print(vector[vector %in% c(1,2,3,4,5)])