Learn R Programming

optpart (version 3.0-3)

consider: Recommendations for Possible Merging of Clusters

Description

Presents an ordered list of possible cluster combinations to consider for merging to simplify a classification.

Usage

consider(part)

Arguments

part

an object of class ‘partana’ from functions partana, optpart or bestopt

Value

a data.frame with three elements:

row

the current cluster number

col

the cluster to which it is most similar

vals

the mean similarity of the two clusters

Details

Simply sorts the cluster-to-cluster mean similarity matrix of a ‘partana’ object into a list sorted by mean similarity.

References

http://ecology.msu.montana.edu/labdsv/R

See Also

optpart, bestopt

Examples

Run this code
# NOT RUN {
data(shoshveg)                    # returns a vegetation data.frame
dis.bc <- dsvdis(shoshveg,'bray') # calculates a Bray/Curtis
                                  # dissimilarity matrix
opt.5 <- optpart(5,dis.bc)        # generates a 5 cluster partition
consider(opt.5)                   # recommends possible clusters to merge
# }

Run the code above in your browser using DataLab