positive integer giving the number of items to choose.
...
Additional arguments:
na.rm Logical. If TRUE. NA values are removed from random sample
extent Extent. To limit regular sampling to the area within the extent
cells Logical. If
Value
A vector, matrix (if cells=TRUE; or for a multi-layered object), or a SpatialPointsDataFrame (if sp=TRUE)
Details
With na.rm=TRUE, the returned sample may be smaller than requested