rlabelRes: Random Re-Labelling Envelope Residual

View source: R/rlabelRes.R

rlabelResR Documentation

Random Re-Labelling Envelope Residual

Description

Random Re-Labelling Envelope Residual

Usage

rlabelRes(x, ...)

## S3 method for class 'ppp'
rlabelRes(x, ...)

## S3 method for class 'ppplist'
rlabelRes(x, ...)

## S3 method for class 'hyperframe'
rlabelRes(x, ...)

Arguments

x

see Usage

...

arguments of the function envelope.ppp, other than parameters simulate, savefuns and verbose

References

https://tingtingzhan.quarto.pub/groupedhyperframe/topics.html

Examples

set.seed(52); res1_anemones = spatstat.data::anemones |>
  rlabelRes(fun = spatstat.explore::Kmark)
set.seed(52); res1_anemones_times = spatstat.data::anemones |>
  rlabelRes(fun = spatstat.explore::Kmark, f = `*`)
stopifnot(!identical(res1_anemones, res1_anemones_times))
  

set.seed(52); spatstat.data::anemones |>
  rlabelRes(fun = spatstat.explore::Kmark, f = \(m1, m2) { m1*m2 }) |>
  identical(y = res1_anemones_times) |>
  stopifnot()


set.seed(12); res_ants = spatstat.data::ants |>
  rlabelRes(fun = spatstat.explore::Gcross)


groupedHyperframe documentation built on March 10, 2026, 5:08 p.m.