Skip to content
Prev 199219 / 398503 Next

sort of cumulative counting in a vector

You will get 0s instead of NAs, but this may suffice:

cumsum(test == 't')

b
On Nov 5, 2009, at 11:30 AM, Stefan Uhmann wrote: