I have a vector like: a = c(1:10)
and I need to remove multiple values, like: 2, 3, 5
How to delete those numbers (they are NOT the positions in the vector) in the vector?
at the moment i loop the vector and do something like:
a[!a=NUMBER_TO_REMOVE]
But I think there is a function that does it automatically.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…