On 22/09/19 11:19 PM, Richard O'Keefe wrote: <SNIP> > Whenever you want a vector that counts something, > cumsum of a logical vector is a good thing to try. <SNIP> Fortune nomination. cheers, Rolf -- Honorary Research Fellow Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276