[R] How to count the overlapped in two vectors

Erik Iverson iverson at biostat.wisc.edu
Thu May 1 17:01:15 CEST 2008


Not quite sure what you want your graphic to look like.

Do ?intersect and ?length help at all?

ss wrote:
> Dear list,
> 
> If I have two vector, t1 and t2, of different lengths.  Is there an easy way
> to count
> the number of the overlapped in two vectors and show the result in the
> graph?
> 
> Thanks much,
> 
> Alex
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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