fun applied to columns (if funWay=2, default), rows (if funWay=1) or both (if funWay=c(1,2)) is decreasing by clusters.Orders the partition so that mean values of fun applied to columns (if funWay=2, default), rows (if funWay=1) or both (if funWay=c(1,2)) is decreasing by clusters. The function can be used on the results of critFunC, optRandomParC or similar, or matrix and a partition can be supplied. It should also work on multirelational and lined networks.
orderClu(
x,
clu = NULL,
fun = sum,
funWay = 2,
nn = NULL,
returnList = TRUE,
scale = TRUE
)An ordered partition. In an attribute ("reorder"). the information on how things were reordered.
A result of critFunC, optRandomParC or similar (something containing M (matrix) and clu (partition)) or a matrix (or array for multirelational networks).
A partition - a vector or a list of vectors/partitions. It must be supplied only if x is a matrix or array.
A function used to summarize rows or columns. sum by default.
In which "way" should fun be appluied - to columns (if funWay=2, default), rows (if funWay=1) or both (if funWay=c(1,2))
The numbers of untis by sets of units. In principle, the function should determin this automatically.
Logical. Should the partition be returned in form of a list (for lined networks only). TRUE by default.
Only used in case of multirelational networks. Should relations be scaled (TRUE by default) before summation. It can also be a vector of weights by relations.
clu