slice.index {cat} | R Documentation |
Mimics the behaviour of the S-Plus function slice.index
Code originally from Peter Dalgaard, answering a query from Fernando Tusell on the R list (30.March.2000). Recent versions of R have this function built-in.