Re: [R] for loop using index values

2014-05-15 Thread arun
Hi, Not sure I understand correctly.  May be this helps: ##If the blocks are created as a list set.seed(475)  lst1 <- setNames(lapply(1:10, function(i) {rowN <- sample(20,1)*15; matrix(sample(40,10*rowN, replace=TRUE), nrow=rowN)}),1:10) sapply(lst1,nrow)>100  #   1 2 3 4 5

Re: [R] for loop using index values

2014-05-14 Thread Frede Aakmann Tøgersen
contact the sender. From: David Gwenzi [mailto:dgwe...@gmail.com] Sent: 15. maj 2014 07:43 To: Frede Aakmann Tøgersen Subject: Re: [R] for loop using index values Hi Frede, Thanks for your reple. I guess I am not making my question very clear. Sorry about that. Let me re-phrase it this w

Re: [R] for loop using index values

2014-05-14 Thread Frede Aakmann Tøgersen
; -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of David Winsemius > Sent: 15. maj 2014 06:49 > To: David Gwenzi > Cc: r-help@r-project.org > Subject: Re: [R] for loop using index values > > > On May 14, 2014,

Re: [R] for loop using index values

2014-05-14 Thread David Winsemius
On May 14, 2014, at 9:23 PM, David Gwenzi wrote: Hi all I have point data along a transect and I want to divide the transect into small blocks of 10m length each. I have named the blocks as a list i.e subset[[i]]. Now the issue is I want to process only those blocks that have at least 10