Skip to content
Prev 261813 / 398502 Next

Odp: RES: Recode numbers

Hi

r-help-bounces at r-project.org napsal dne 01.06.2011 21:10:23:
a bit shorter is

a2<-rep(b, rle(a)$lengths)

Regards
Petr

            
http://www.R-project.org/posting-guide.html
Message-ID: <OF1E39D9B7.7F5C4220-ONC12578A4.00453465-C12578A4.004554FE@precheza.cz>
In-Reply-To: <07E17EE73DE13B4897BC6FE325CF7A2401377F94@BRSAOWSEXCL001.votorantim.grupo>