showLargest {CMO} | R Documentation |
This function determines n highest values per column within a matrix and sets all other values to NA.
showLargest(dataMat, highest = 4)
dataMat |
Input data matrix |
highest |
number of highest values to show |
A matrix with only n highest values left unchanged. All other values are set to NA.
Christian Montel
#create some data matrix dat <- matrix(sample(c(1:36),36),nrow=6) showLargest(dat,highest=5)