sortmat function

Reorders to rows (corresponding to different clusters) of a matrix of medians to a desired order

Reorders to rows (corresponding to different clusters) of a matrix of medians to a desired order

sortmat(mat, desiredorder)

Arguments

  • mat: matrix of median data
  • desiredorder: row labels from matrix in desired order

Returns

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)
  • Maintainer: Allison Throm
  • License: GPL-2
  • Last published: 2018-07-05

Useful links