Skip to content
Prev 327172 / 398502 Next

How to search for a sequence(and its combination) inside a vector?

Beats me. I get: 
table(dd)
    val
leng TRUE
   1    3
   3   12

What does dd look like.  In my case I get this where the first column is the row number
dd
   leng  val
1     3 TRUE
3     3 TRUE
5     3 TRUE
7     3 TRUE
9     3 TRUE
11    1 TRUE
13    3 TRUE
15    3 TRUE
17    3 TRUE
19    3 TRUE
21    3 TRUE
23    3 TRUE
25    1 TRUE
27    3 TRUE
29    1 TRUE

John Kane
Kingston ON Canada
____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!