Skip to content

Commit

Permalink
Merge pull request #1725 from brownag/patch-2
Browse files Browse the repository at this point in the history
Update divide.R
  • Loading branch information
rhijmans authored Jan 22, 2025
2 parents 158a159 + 227ec18 commit 8c130b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/divide.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ setMethod("divide", signature(x="SpatRaster"),
north <- !north
}
}
out <- lapply(out, function(i) as.polygons(ext(i))) |> vect()
out <- vect(lapply(out, function(i) as.polygons(ext(i))))
crs(out) <- crs(out)
}
out$zones <- 1:nrow(out)
Expand Down

0 comments on commit 8c130b4

Please sign in to comment.