length(intersect(v1,v2))
-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
"The business of the statistician is to catalyze the scientific learning
process." - George E. P. Box
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Omar Lakkis
> Sent: Wednesday, February 16, 2005 12:27 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] intersection or == of date vectors
>
> I have a vector of unique dates v1, and a vector of unique dates v2
> (the vectors are of different lengths). How do I find out the count of
> elements that matches between the two vectors?
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>