I apologize for the confusion but that solution will work with a twist.

I want to record only the first value of a state change that goes above 2.
so if the sequence is

344455544334 it should read all 3s

but 3442555414433 should read 3332555514444


Hope that helps clarify, if not I can get there from your function Bill,

Thanks!

Justin

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to