Rui and Dimitris, thank you much, both approaches work great! (although rle won me, I had a feeling something like that had to exist) -- View this message in context: http://r.789695.n4.nabble.com/split-array-into-groups-by-value-tp4448578p4451048.html Sent from the R help mailing list archive at Nabble.com.