Learn R Programming

shallot (version 0.4.1)

enumerate.partitions: Enumerate Partitions

Description

This function extracts the partitions from the results of the sample.partitions function.

Usage

enumerate.partitions(n.items, as.matrix = TRUE)

Arguments

n.items

An integer given then number of items to partition.

as.matrix

Should the results be returned as a matrix of cluster labels or list of partitions?

Value

A list containing either: i. a matrix of cluster labels in which each row represents a clusterings, or ii. a list containing partitions.

Details

This function returns an enumeration of the partition of n.items items.

See Also

process.samples

Examples

Run this code
# NOT RUN {
example(shallot)
# }

Run the code above in your browser using DataLab