View source: R/sampleRastStrat.r
| sampleRastStrat | R Documentation | 
This function is a robust version of sampleStratified() in the raster package where sampling can be performed with replacement in each stratum. Each unique value in a raster is identified as a stratum. Each stratum is sampled a given number of times.
sampleRastStrat(x, n, adjArea = TRUE, replace = TRUE)
| x | Raster* object. | 
| n | number of points to sample from *each* stratum | 
| adjArea | Logical. If TRUE then adjust sample probability of cells by cell area. | 
| replace | Logical. If TRUE then sample with replacement. | 
2-column matrix with longitude and latitude of random points.
sampleStratified, randomPoints, sampleRast
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.