[R] vector help

Ramya ramya.victory at gmail.com
Thu Dec 10 20:55:57 CET 2009


I have tow vectors one is the subset of another

x is a subset of X Both are vectors with n elements

X[X %in% x] would give me x again rite because it is a subset but i want all
those are not in x from X.

X[which(X != x)] should this do that

Thanks

Ramya
-- 
View this message in context: http://n4.nabble.com/vector-help-tp960277p960277.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list