Skip to content

Commit

Permalink
fixes #1437
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Dec 18, 2024
1 parent 72db649 commit 2a24157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sample.R
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ setMethod("spatSample", signature(x="SpatRaster"),
if (exhaustive && (method=="random") && na.rm) {
cnrs <- .sampleCellsExhaustive(x, size, replace, ext, weights=NULL, warn=FALSE)
} else {
cnrs <- .sampleCells(x, size, method, replace, na.rm, ext)
cnrs <- .sampleCells(x, size, method, replace, na.rm, ext, exp=exp)
}

if (method == "random") {
Expand Down

0 comments on commit 2a24157

Please sign in to comment.