Hello,

I am trying to make a "clustered" Random distribution of statial points.
I want to make p "random" distribution of n points.
But I don't want a typical random distribution. I want a clustered one (with minimal distances bettween my points fixed as my observed distribution: c(3.9,3.3,1.4,1.4,0.7,0.7)).
I have seen that the spsample function from package sp could "in theory" make this...
But impossible to understand how to make it work:

> spsample(var,10,"clustered")
Erreur dans `[<-.data.frame`(`*tmp*`, , j, value = c(-33.8558590595841, -24.8671595071446,  : 
  replacement has 14 rows, data has 12

Does anyone know the solution, there is no example in the help page of spsample.

Thanks by advance,

Quentin





      
	[[alternative HTML version deleted]]

