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
fv_ppplist(x, ...)
dist_ppplist(x, ...)
op_ppplist(
x,
op,
mc.cores = switch(.Platform$OS.type, windows = 1L, detectCores()),
...
)
Arguments
x |
a |
... |
additional parameters of workhorse functions
|
op |
workhorse function, either |
mc.cores |
integer scalar, see function mclapply.
Default is 1L on Windows, or detectCores on Mac.
CRAN requires |
Details
Function fv_ppplist()
is a parallel batch process of the workhorse function fv_ppp()
.
Function dist_ppplist()
is a parallel batch process of the workhorse function dist_ppp()
.
Value
Function fv_ppplist()
returns a listof function fv_ppp()
returns.
Function dist_ppplist()
returns a listof function dist_ppp()
returns.
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) |>
fv_ppplist(fn = markcorr, mc.cores = 1L)
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 |> dist_ppplist(fn = .nncross, i = 'rrds', j = 'ltning', mc.cores = 1L)
x2 |> dist_ppplist(fn = .nncross, i = 'unknown',
j = 'burn.no.perm', mc.cores = 1L)
[Package groupedHyperframe version 0.2.1 Index]