Re: [R] select n rows

2010-03-27 Thread Patrick Burns
Your question is ambiguous -- at least to me. The posting guide: http://www.r-project.org/posting-guide.html suggests that examples can be helpful to explain what you want. From the main statement I think the answer might be: mymatrix[seq(1, nrow(mymatrix), by=8), ] From the 'i.e.' clause I'm

[R] select n rows

2010-03-27 Thread leobon
Hello everyone, I have a matrix with 8000 rows. If I want to select every 8 rows, (i.e. row1, row2, ..., row8), what should I do? Appriciate for any hints! Thanks a lot! Leo -- View this message in context: http://n4.nabble.com/select-n-rows-tp1693136p1693136.html Sent from the R help mailing li