Skip to content

Commit

Permalink
Edit pixelate and update pkgdown site
Browse files Browse the repository at this point in the history
  • Loading branch information
lydialucchesi committed Mar 19, 2024
1 parent a4d3725 commit 743173b
Show file tree
Hide file tree
Showing 16 changed files with 82 additions and 102 deletions.
2 changes: 1 addition & 1 deletion R/pixelate.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pixelate <-
# define a function that finds the pixels inside each region
pixel_poly <- function(x) {
grid <- st_intersection(full_grid, st_as_sf(geoData[x,]))
grid <- st_cast(grid, "POLYGON")
grid <- suppressWarnings(st_cast(grid, "POLYGON"))
grid <- as_Spatial(grid)
grid$ID <- rep(geoData[x, id][[1]], length(grid))
return(grid)
Expand Down
38 changes: 19 additions & 19 deletions docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 743173b

Please sign in to comment.