[R] Really simple question

naw3 at duke.edu naw3 at duke.edu
Tue Jun 10 22:32:51 CEST 2008


I don't have too much programming experience - sorry in advance if this question
is very basic, and thanks for the help.

I have a vector of numbers and another vector of a subset of those numbers. How
can I create a third vector with all the numbers in the original list that
aren't in the given subset. Like this:

List1   subset --> result
1       1           2
2       3
3       4
4       5

Thank you so much!

More information about the R-help mailing list