This will work too:

> n <- dim(lead.dat)[1]
> n
[1] 6
> ix <- seq(1,n,by=2)
> ix
[1] 1 3 5
> lead.dat[ix,]
     [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,]  105    1    1 1103    1    5    4    8    5    22
[2,]  106    1    2  606    1    5   12   11    9    37
[3,]  107    1    3  611    1    7    9   10    7    33

-- 
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP

______________________________________________
[email protected] 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