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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to