op_ppplist | R Documentation |
'ppplist'
ObjectBatch operations of function fv_ppp()
or dist_ppp()
, for a 'ppplist'
input.
op_ppplist(x, op, mc.cores = getOption("mc.cores"), ...)
x |
a |
op |
workhorse function, either |
mc.cores |
integer scalar, see function mclapply.
Default is 1L on Windows, or detectCores on Mac.
CRAN requires |
... |
additional parameters of workhorse functions
|
Function op_ppplist()
is a parallel batch process of
the workhorse function fv_ppp()
or dist_ppp()
.
Function op_ppplist()
returns a listof
function fv_ppp()
returns, if op = fv_ppp
.
function dist_ppp()
returns, if op = dist_ppp
.
library(spatstat.data)
library(spatstat.geom) # for ?spatstat.geom::split.ppp
library(spatstat.explore) # for ?spatstat.explore::Emark, etc.
Vc = with(shapley$marks, expr = {
cut.default(V, breaks = quantile(V, probs = c(0, 1/3, 2/3, 1)), labels = c('L', 'M', 'H'))
})
x1 = shapley |>
subset.ppp(select = c('Mag', 'SigV')) |>
split.ppp(f = Vc) |>
op_ppplist(op = fv_ppp, fn = markcorr)
names(x1)
names(x1$L)
x2 = nbfires |>
subset.ppp(select = c('fire.type', 'cause', 'ign.src')) |>
na.omit.ppp() |>
split.ppp(f = 'fire.type')
x2 |> op_ppplist(op = dist_ppp, fn = .nncross, i = 'rrds', j = 'ltning')
x2 |> op_ppplist(op = dist_ppp, fn = .nncross, i = 'unknown', j = 'burn.no.perm')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.