op_ppplist {groupedHyperframe} | R Documentation |
Batch Operations of 'ppplist'
Object
Description
Batch operations of function fv_ppp()
or dist_ppp()
, for a 'ppplist'
input.
Usage
op_ppplist(x, op, mc.cores = getOption("mc.cores"), ...)
Arguments
x |
a |
op |
workhorse function, either |
mc.cores |
integer scalar, see function mclapply. Default is 1L on Windows, or detectCores on Mac. |
... |
additional parameters of workhorse functions
|
Details
Function op_ppplist()
is a parallel batch process of
the workhorse function fv_ppp()
or dist_ppp()
.
Value
Function op_ppplist()
returns a listof
function
fv_ppp()
returns, ifop = fv_ppp
.function
dist_ppp()
returns, ifop = dist_ppp
.
Examples
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')
[Package groupedHyperframe version 0.2.4 Index]