[R] Romoving elements from a vector. Looking for the opposite of c(), New user

Thomas Frööjd tfrojd at gmail.com
Thu Nov 15 15:15:15 CET 2007


Hi

I have three vectors say x, y, z. One of them, x contains observations
on a variable. To x I want to append all observations from y and
remove all from z. For appending c() is easily used

x <- c(x,y)

But how do I remove all observations in z from x? You can say I am
looking for the opposite of c().

Best regards



More information about the R-help mailing list