clusters: Extracting cluster memberships

View source: R/extractors.R

clustersR Documentation

Extracting cluster memberships

Description

This function extracts a vector with MAP cluster memberships assignments from the 'bnclustOmics' object

Usage

clusters(x, consensus = FALSE)

Arguments

x

object of class 'bnclustOmics'

consensus

logical, indicates if consensus clusters will be extracted; FALSE by default

Value

a vector of length of the number of observations corresponding to cluster assignments obtained by bnclustOmics

Examples

clusters(bnres3)

bnClustOmics documentation built on Aug. 5, 2022, 5:11 p.m.