Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

partition

Convert Object to Partition Object


Description

Convert an object of class ‘partana’ or class ‘clustering’ to an object of class ‘partition’.

Usage

partition(x, dist, ...)

Arguments

x

an object which inherits from class ‘clustering’

dist

an object of class ‘dist’

...

ancillary arguments to pass to ‘partition’

Details

A ‘partition’ object is the output of several functions in package ‘cluster’. This utility function converts objects from package ‘optpart’ to ‘partitions’ so that functions in that library are available.

Value

an object of class ‘partition’ with components (and possibly others):

clustering

vector of numeric cluster assignments

silinfo

a list with all silhouette information, only available when the number of clusters is non-trivial, i.e., 1 < k < n. See ‘silhouette’

Author(s)

References

See Also

Examples

data(shoshveg)
dis.bc <- dsvdis(shoshveg,'bray/curtis')
part <- partana(sample(1:5,nrow(shoshveg),replace=TRUE),dis.bc)
result <- partition(part,dis.bc)

optpart

Optimal Partitioning of Similarity Relations

v3.0-3
GPL (>= 2)
Authors
David W. Roberts <droberts@montana.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.