gseg2_data: Data-Level Alias for gseg2

View source: R/canonical-interface.R

gseg2_dataR Documentation

Data-Level Alias for gseg2

Description

A compatibility alias for the data-level gseg2 interface. New code may call gseg2 directly.

Usage

gseg2_data(x = NULL, dissimilarity = NULL, k = NULL,
  statistics = "m", ...)

Arguments

x

A numeric matrix with observations in rows.

dissimilarity

A square symmetric dissimilarity matrix or a dist object. Supply exactly one of x and dissimilarity.

k

Number of MST layers. The default is floor(sqrt(N)).

statistics

Scan statistic or statistics; see gseg2.

...

Additional arguments passed to gseg2.

Value

The result from gseg2.

See Also

gseg2, gseg_kmst

Examples

set.seed(1)
x <- matrix(rnorm(60), nrow = 20)
ans <- gseg2_data(x, pval.appr = FALSE)

gSeg documentation built on Nov. 15, 2026, 5:06 p.m.