change.order.clusters {tiger}R Documentation

Change numbering of clusters

Description

Changes the cluster numbering in an fuzzy clustering object.

Usage

change.order.clusters(clustering, new.order)

Arguments

clustering Object returned from cmeans
new.order Vector with new cluster numbering.

Details

Cluster 1 from the old object is assigned the number stored in the frist position in new.order, Cluster 2 the number on the second position and so on.

Value

Identical object as clustering except the cluster numbering is changed

Author(s)

Dominik Reusser

References

Reusser, D. E., Blume, T., Schaefli, B., and Zehe, E.: Analysing the temporal dynamics of model performance for hydrological models, Hydrol. Earth Syst. Sci. Discuss., 5, 3169-3211, 2008.

See Also

cmeans for the fuzzy clustering

Examples

data(tiger.example)

new.order <- c(6,3,2,5,4,1)

cmeans.result <- tiger.single$cluster.assignment[[6]]
str(cmeans.result)
cmeans.result2 <- change.order.clusters(cmeans.result, new.order)

[Package tiger version 0.2 Index]