[R] Count matches of a sequence in a vector?

Jeff Brown dopethatwantscash at yahoo.com
Wed Apr 21 17:07:40 CEST 2010


This sort of calculation can't be vectorized; you'll have to iterate through
the sequence, e.g. with a "for" loop.  I don't know if a routine has already
been written.
-- 
View this message in context: http://n4.nabble.com/Count-matches-of-a-sequence-in-a-vector-tp2019018p2019108.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list