The below are by 'a' and 'b':
a <- c("A", "B", "C", "A", "A", "B")
b <- c("A", "C", "A")
I wanted to subset 'a' with respect to 'b' so that I can get the following set of values:
("B" "A" "B")
So what I want is while performing the subset of 'a' with respect to 'b' only two "A"s and one "C" should be removed from set a. And all of the rest of the elements that are in 'a' should remain even though they might be "A" or "C".