powered by
Calculate the Number of Items in the Largest Cluster of a Set Partition
sizeOfLargestCluster(partition)
A numeric vector representing a partition of the integers \(1\), ..., \(n\) using cluster labels
The number of items in the largest cluster of the given partition as a numeric vector of length one.
# NOT RUN { p <- c(0,1,1,1,1,1,2) sizeOfLargestCluster(p) # }
Run the code above in your browser using DataLab