change.order.clusters: Change numbering of clusters

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Changes the cluster numbering in an fuzzy clustering object.

Usage

1
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

1
2
3
4
5
6
7
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)

tiger documentation built on May 2, 2019, 2:22 a.m.