Thank you! _______________ Lähettäjä: Berend Hasselman [[email protected]] Lähetetty: 28. syyskuuta 2012 10:47 Vastaanottaja: Atte Tenkanen Cc: R help Aihe: Re: [R] How to test if there is a subvector in a longer vector
On 28-09-2012, at 07:41, Atte Tenkanen <[email protected]> wrote: > Sorry. I should have mentioned that the order of the components is important. > > So c(1,4,6) is accepted as a subvector of c(2,1,1,4,6,3), but not of > c(2,1,1,6,4,3). > > How to test this? See this discussion for a variety of solutions. http://r.789695.n4.nabble.com/matching-a-sequence-in-a-vector-td4389523.html#a4393453 Berend ______________________________________________ [email protected] 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.

