View source: R/future_st_join.R
future_st_join | R Documentation |
sf::st_join
and sf::st_filter
Where the first sf object object (x) is split into chunks and joined with / filtered by the second (y). This will work best when x is large and y is small. It won't be kind to your machine's memory.
future_st_join(x, y, join, ...)
## S3 method for class 'sf'
future_st_join(
x,
y,
join = st_intersects,
...,
suffix = c(".x", ".y"),
largest = FALSE,
left = TRUE,
nchunks = 1,
.progress = FALSE
)
future_st_filter(x, y, ...)
## S3 method for class 'sf'
future_st_filter(
x,
y,
...,
.predicate = st_intersects,
nchunks = 1,
.progress = FALSE
)
x |
object of class |
y |
object of class |
join |
geometry predicate function with the same profile as st_intersects; see details |
... |
for |
suffix |
length 2 character vector; see merge |
largest |
logical; if |
left |
left logical; if |
nchunks |
The number of chunks to run on each core. Default is 1. Can improve or worsen performance depending on dataset size and number of cores |
.progress |
Show progress bar. Only useful when nchunks > 1. default is FALSE |
.predicate |
geometry predicate function with the same profile as st_intersects; see details |
See st_join for detais regarding join types.
an object of class sf
, joined based on geometry
#plan(multisession, workers = 2)
future_st_join(cycleways_england(), gb_counties())
#plan(multisession, workers = 2)
future_st_filter(cycleways_england(), gb_counties()[1:50,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.