I have a character vector, and I want to exclude elements from it which are present in a second vector. I don\'t know how to work the negation in this case while still consi
You're close
vector[!vector %in% vector2]
or, even though you said "not using setdiff"
setdiff(vector, vector2)