proba_max_cluster: Indicates the most probable cluster

View source: R/prediction.R

proba_max_clusterR Documentation

Indicates the most probable cluster

Description

Indicates the most probable cluster

Usage

proba_max_cluster(mixture)

Arguments

mixture

A tibble or data frame containing mixture probabilities.

Value

A tibble, retaining only the most probable cluster. The column Cluster indicates the the cluster's name whereas Proba refers to its associated probability. If ID is initially a column of mixture (optional), the function returns the most probable cluster for all the different ID values.

Examples

TRUE

MagmaClustR documentation built on June 29, 2024, 1:06 a.m.