sortmat {mineCitrus} | R Documentation |
Reorders to rows (corresponding to different clusters) of a matrix of medians to a desired order
Description
Reorders to rows (corresponding to different clusters) of a matrix of medians to a desired order
Usage
sortmat(mat, desiredorder)
Arguments
mat |
matrix of median data |
desiredorder |
row labels from matrix in desired order |
Value
Returns a matrix with rows rearranged in desired order
Examples
library(mineCitrus)
data("citrus.combinedFCSSet")
data("citrus.foldClustering")
data("citrus.foldFeatureSet")
medians<-clustermeds(citrus.foldFeatureSet=citrus.foldFeatureSet,
citrus.foldClustering=citrus.foldClustering,
medsofinterest=c("Red","Blue"),
citrus.combinedFCSSet=citrus.combinedFCSSet)
names<-rownames(medians)
names<-names[c(31,1:30)]
sortedmedians<-sortmat(mat=medians,desiredorder=names)
[Package mineCitrus version 1.0.0 Index]