Learn R Programming

sams (version 0.4.3)

joinExistingCluster: Join Item to an Existing Cluster

Description

Join Item to an Existing Cluster

Usage

joinExistingCluster(i, join, partition)

Arguments

i

Item index as an integer vector of length one

join

Label or index of cluster that i must join

partition

Set partition of the integers \(1\), ..., \(n\) represented as either a numeric vector of cluster labels, or a list containing subsets of these integers

Value

Updated partition.