Re: [R] resampling mean distances

2006-08-01 Thread Uwe Ligges
Jose Andres wrote: Hi all, I am trying to generate a distribution for the mean euclidean distance between a group of n elements in a given surface (the elements are randomly picked). Fo doing so I've written the following code: sampling- function(x,size) { x-

[R] resampling mean distances

2006-07-31 Thread Jose Andres
Hi all, I am trying to generate a distribution for the mean euclidean distance between a group of n elements in a given surface (the elements are randomly picked). Fo doing so I've written the following code: sampling- function(x,size) { x- x[sample(1:nrow(x),size),] mat-