Jason Rupert writes:
> By any chance is there an R command to compare two vectors? 
>  
> For example, 
> a_tmp<-c("a", "b", "c", "d", "e", "f", "g", 'h')
> b_tmp<-c("a", "c", "e", "g")
>  
> I would like to compare b_tmp against a_tmp to determine if the 
> members of b_tmp are part of a_tmp.  
>  
> I tried subset(b_tmp, b_tmp==a_tmp)

It depends on what you want to do.  identical() will give you simple 
TRUE/FALSE results, setdiff() will list elements only found in one vector. 
 Using the %in% operator is another good possibility.

cur

-- 
Curt Seeliger, Data Ranger
Raytheon Information Services - Contractor to ORD
seeliger.curt@epa.gov
541/754-4638

	[[alternative HTML version deleted]]


