Skip to content
Back to formatted view

Raw Message

Message-ID: <4B52F26A.1040502@googlemail.com>
Date: 2010-01-17T11:20:10Z
From: Walther, Alexander
Subject: Choose every second value

Dear list,

is there a command that selects every second value from a given vector?
For instance,

a <- c(1,2,3,4,5,6)

should yield

1,3,5

and

2,4,6

which i intend to place into two seperate vectors.


best

Alex