Dear all, I would like to task you if you know a rle version that can work also in a non consecutive way too. B.R Alex [[alternative HTML version deleted]]
On Mon, Oct 31, 2011 at 2:29 AM, Alaios <alaios at yahoo.com> wrote:> Dear all, > I would like to task you if you know a rle version that can work also in a non consecutive way too.You mean just a counter for an objects occurence? like: A B A A B B C would give 1 1 2 3 2 3 1? I am not clear what non consecutive runs are exactly. Cheers, Josh> > B.R > Alex > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >-- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/
On 10/31/2011 09:34 AM, Joshua Wiley wrote:> On Mon, Oct 31, 2011 at 2:29 AM, Alaios <alaios at yahoo.com> wrote: >> Dear all, >> I would like to task you if you know a rle version that can work also in a non consecutive way too.The whole idea of rle is to have consecutive runs. Please specify more clearly what you want. cheers, Paul> You mean just a counter for an objects occurence? > > like: A B A A B B C would give 1 1 2 3 2 3 1? > > I am not clear what non consecutive runs are exactly. > > Cheers, > > Josh > >> B.R >> Alex >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at 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. >> > >-- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770