showLargest {CMO}R Documentation

Function to selectively show n highest values per column in a matrix

Description

This function determines n highest values per column within a matrix and sets all other values to NA.

Usage

showLargest(dataMat, highest = 4)

Arguments

dataMat Input data matrix
highest number of highest values to show

Value

A matrix with only n highest values left unchanged. All other values are set to NA.

Author(s)

Christian Montel

Examples

#create some data matrix
dat <- matrix(sample(c(1:36),36),nrow=6)
showLargest(dat,highest=5)

[Package CMO version 1.02 Index]