One option might be to turn the sequence into a character string, and then use something like grep(). Kind of a kludge, but possibly easy. -- View this message in context: http://n4.nabble.com/Count-matches-of-a-sequence-in-a-vector-tp2019018p2019161.html Sent from the R help mailing list archive at Nabble.com.