We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f8317e commit 3ad0790Copy full SHA for 3ad0790
man/sample.Rd
@@ -14,7 +14,7 @@ Take a spatial sample from a SpatRaster, SpatVector or SpatExtent. Sampling a Sp
14
15
With a SpatRaster, you can get cell values, cell numbers (\code{cells=TRUE}), coordinates (\code{xy=TRUE}) or (when \code{method="regular"} and \code{as.raster=TRUE}) get a new SpatRaster with the same extent, but fewer cells.
16
17
-In order to assure regularity when requesting a regular sample, the number of cells or points returned may not be exactly the same as the \code{size} requested unless you use \code{exact=TRUE}.
+In order to assure regularity when requesting a regular sample, the number of cells or points returned may not be exactly the same as the \code{size} requested unless you use \code{exact=TRUE} (and do not use \code{na.rm=TRUE}). Alternatively, use \code{method="spread"} to get an approximately regular sample for the cells that are not \code{NA}.
18
}
19
20
\usage{
0 commit comments