[R] Really simple question
Søren Højsgaard
Soren.Hojsgaard at agrsci.dk
Tue Jun 10 22:42:25 CEST 2008
?setdiff
________________________________
Fra: r-help-bounces at r-project.org på vegne af naw3 at duke.edu
Sendt: ti 10-06-2008 22:32
Til: r-help at r-project.org
Emne: [R] Really simple question
Hi,
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
5
Thank you so much!
-Nina
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list