Hi all, I have a series whose tpe for that is like series I expose below.

The thing is if a incremental number ends I´m in the first "type" of event
in this success is named 5 (because of the maximum is 5). In the series I
have this kind of events  5,3,1,1,5,3

But I don´t know extactly a priori what is the maximum and when "stops"
there is some function in r doing something similar this?

Thans in advance to all.


1
2
3
4
5
1
2
3
1
1
1
2
3
4
5
1
2
3

	[[alternative HTML version deleted]]

