Andres,
You statement "separated at least for two grids from the closest one."  is
not very clear. Can you please rephrase and provide a self contained
example? Should the points should be at least two grid cells from each
other (in which case you could probably use functions randomPoints,
cellFromXY and ajdacent with a 5x5 matrix to remove part of the sample)? Or
at least two grid cells from a set of pre-defined grid cells (in which case
you could probably use rasterize -> focal (to create a buffer around each
point) -> reclassify (buffers become NA) and then randomPoints
Robert

On Fri, Mar 8, 2013 at 7:33 PM, Andres Merino-Viteri <
amerinoviteri@gmail.com> wrote:

> Hi,
>
> I am looking for a way to generate an object with the coordinates of
> random points from a grid surface. I have used randomPoints from dismo
> package to do things like that before, however now I need to create an
> object with the coordinates of an specific number of random points
> separated at least for two grids from the closest one.
>
> I would be grateful for any suggestion. Thanks in advance.
>
> Andres Merino-Viteri
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

