On 6/28/07, João Fadista <Joao.Fadista@agrsci.dk> wrote:
>
> I would like to take out the values from one vector that are equal to the
> values in another vector.
>
> Example:
> a <- c(1,2,3,4,5,6,7,8,9)
> b <- c(3,10,20,5,6)
> b_noRepeats = c(10,20)
>
>

 b[!(b %in% intersect(a,b))]

See ?intersect


-- 
Christophe Pallier (http://www.pallier.org)

	[[alternative HTML version deleted]]

