Skip to content

Commit

Permalink
fixes #1514
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed May 24, 2024
1 parent 072e501 commit af74592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zonal.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ setMethod("zonal", signature(x="SpatRaster", z="SpatRaster"),
}
colnames(out) <- c(znms, names(x))
nz <- 2
} else {
} else if (!as.raster) {
if (made_unique && (!as.raster)) {
ulevs <- cats(z)[[1]][, -c(1:2)]
if (any(ff)) {
Expand Down

0 comments on commit af74592

Please sign in to comment.