Skip to content
Back to formatted view

Raw Message

Message-ID: <80B3917B-7502-4859-9EEC-62AE991C939B@imperial.ac.uk>
Date: 2013-11-11T12:11:48Z
From: Federico Calboli
Subject: repeating values in an index two by two

Hi All,

I am trying to create an index that returns something like

1,2,1,2,3,4,3,4,5,6,5,6,7,8,7,8

and so on and so forth until a predetermined value (which is obviously even).  I am trying very hard to avoid for loops or for loops front ends.

I'd be obliged if anybody could offer a suggestion.

BW

F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20131111/7bc5cbcb/attachment.bin>