Re: [R] how to count number of occurrences

2011-11-03 Thread uka
This was very helpful. Thank you very much. Just one question, I notice that it does not count the number of X's before the first Y. I want the result be 1 4 0 0 0 5 0 0 0 0. I tried combining this output with the first value of rle output, but realized that rle doesn't give me the 0s. So, if my fi

Re: [R] R help with different combinations of vectors of different sizes

2011-10-29 Thread uka
Thank you very much both! That's exactly what I was trying to get. -- View this message in context: http://r.789695.n4.nabble.com/R-help-with-different-combinations-of-vectors-of-different-sizes-tp3950940p3950997.html Sent from the R help mailing list archive at Nabble.com.