par_split_list {chopin} | R Documentation |
Split grid list to a nested list of row-wise data frames
Description
Split grid list to a nested list of row-wise data frames
Usage
par_split_list(gridlist)
Arguments
gridlist |
list. Output of |
Details
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
.
Value
A nested list of data frames or WKT strings.
See Also
Other Parallelization:
par_cut_coords()
,
par_grid()
,
par_grid_mirai()
,
par_hierarchy()
,
par_hierarchy_mirai()
,
par_make_grid()
,
par_merge_grid()
,
par_multirasters()
,
par_multirasters_mirai()
,
par_pad_balanced()
,
par_pad_grid()
Examples
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)
[Package chopin version 0.9.4 Index]