View source: R/canonical-interface.R
| gseg_kmst | R Documentation |
Constructs the k-MST used by default in the data-level gSeg interface.
gseg_kmst(x = NULL, dissimilarity = NULL, k = NULL)
x |
Optional data matrix with observations in rows. |
dissimilarity |
Optional square dissimilarity matrix or a |
k |
Number of complete MST layers. The default is |
A two-column edge matrix containing the union of the first k MST layers.
set.seed(1)
x <- matrix(rnorm(60), nrow = 20)
E <- gseg_kmst(x = x)
attr(E, "k")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.