Learn R Programming

tiger (version 0.1)

change.order.clusters: 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.

Value

  • Identical object as clustering except the cluster numbering is changed

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.

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

Run this code
data(tiger.example)

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

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

Run the code above in your browser using DataLab