[R-sig-Geo] random locations within a SpatialPolygonsDataFrame
lancelot
renaud.lancelot at cirad.fr
Sat Jun 18 21:35:17 CEST 2011
Dear Emmanuel,
Thank you for the suggestion. I am aware of spsample but it is not
appropriate to my needs. I want to generate a random sample of points
within the borders of a SpatialPolygonsDataFrame, like runifpoint does
with the borders of an owin object.
Best wishes,
Renaud
Le 18/06/2011 21:23, Emmanuel Blondel a écrit :
> Hello Renaud,
>
> To create a random set of locations in a SpatialPolygonsDataFrame, did
> you try to use the function *spsample*() from package sp?
> See:
> http://www.dpi.inpe.br/gilberto/tutorials/software/R-contrib/sp/html/spsample.html
> In your case, you would specify type="random".
>
> Cheers,
> Emmanuel
>
>
> Le 18/06/2011 20:50, lancelot a écrit :
>> Dear all,
>>
>> How can I draw a random set of locations within the borders of a
>> SpatialPolygonsDataFrame? I'd like something similar to function
>> runifpoint in package spatstat.
>>
>> All the best,
>>
>> Renaud
>
>
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Renaud Lancelot
EDENext Project, coordinator: http://www.edenext.eu/
CIRAD, UMR15, Campus International de Baillarguet TA A-DIR / B
F34398 Montpellier
Tel. +33 4 67 59 37 17 - Fax +33 4 67 59 37 95
Secr. +33 4 67 59 37 37 - Cell. +33 6 77 52 08 69
More information about the R-sig-Geo
mailing list