Henrique Dallazuanna <wwwhsd <at> gmail.com> writes: > Try rep: > > rep(2:4, length.out = 3, times = 10) That's close, but it doesn't wrap to start at 1.