Learn R Programming

bnClustOmics (version 1.1.1)

clusters: Extracting cluster memberships

Description

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

Usage

clusters(x, consensus = FALSE)

Value

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

Arguments

x

object of class 'bnclustOmics'

consensus

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

Examples

Run this code
clusters(bnres3)

Run the code above in your browser using DataLab