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]]
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.
See ?match 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.