Remove a particular group of elements in a vector?

r

Solution

you can do this many ways here is one:

x[!x %in% c(4, 9, 10)]

Problem

Possible Duplicate: How to delete multiple values from a vector? Is there any build-in function allowing us to remove a particular group of elements in a vector ? example: ``` x<-c(2, 4, 6, 9, 10) ``` remove the vector `c(4,9,10)` from `x`

Original source

Related problems