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.

______________________________________________
R-help@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.

Reply via email to