Skip to content
Prev 246126 / 398506 Next

Repeated Indexing / Sequence Operation

On Fri, Dec 31, 2010 at 1:03 PM, Paolo Rossi
<statmailinglists at googlemail.com> wrote:
Try this:

n <- 5
c(sapply(i2, function(x) seq(x - n, x + n)))