par_split_list | R Documentation |
Split grid list to a nested list of row-wise data frames
par_split_list(gridlist)
gridlist |
list. Output of |
If the input is a data frame, the function will return a list of
two data frames: original
and padded
. If the input is a WKT vector,
the function will return a list of two WKT strings: original
and padded
.
A nested list of data frames or WKT strings.
Other Parallelization:
par_cut_coords()
,
par_grid()
,
par_grid_mirai()
,
par_hierarchy()
,
par_hierarchy_mirai()
,
par_make_dggrid()
,
par_make_grid()
,
par_make_h3()
,
par_merge_grid()
,
par_multirasters()
,
par_multirasters_mirai()
,
par_pad_balanced()
,
par_pad_grid()
lastpar <- par(mfrow = c(1, 1))
library(sf)
library(terra)
options(sf_use_s2 = FALSE)
ncpath <- system.file("shape/nc.shp", package = "sf")
nc <- read_sf(ncpath)
nc <- st_transform(nc, "EPSG:5070")
nc_comp_region <-
par_pad_grid(
nc,
mode = "grid",
nx = 4L, ny = 2L,
padding = 10000
)
par_split_list(nc_comp_region)
par(lastpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.