Usage
## S3 method for class 'RasterLayer':
sampleStratified(x, size, exp=10, na.rm=TRUE, xy=FALSE, ext=NULL, sp=FALSE, ...)
Arguments
x
Raster* object, with values (rounded to integers) representing strata
size
positive integer giving the number of items to choose
exp
numeric >= 1. 'Expansion factor' that is mulitplied with size to get an intial sample. Can be increased when you get an insuficient number of samples for small strata
na.rm
logical. If TRUE
(the default), NA
values are removed from random sample
xy
logical. Return coordinates of cells rather than cell numbers
ext
Extent object. To limit regular sampling to the area within the extent
sp
logical. If TRUE
, a SpatialPointsDataFrame is returned
...
Additional arguments. None implemented