I have the following 3 vectors:
vec <- c("a", "b", "c", "d", "e", "f", "g", "h")
vec1 <- c("a", "d", "f", "h")
vec2 <- c("b", "c")
I would to get a new vector that contain the elements present in vec, that are not present in vec1
and vec2
output desired:
output <- c("e", "g")
Thanks all