maxcol_strict: Strict Column Assign

Description Usage Arguments Value

View source: R/maxcol_strict.R

Description

For each column, returns a vector of the rownames whose values were highest. The "snobby" part comes if the user provides values for min and diff, which require that a row's max value be higher than or equal to <min> and with a difference greater than or equal to <diff> in order to be assigned to a column. Rows that do not pass these criteria are ignored.

Usage

1
maxcol_strict(mat, min = NULL, diff = NULL, splitByCol = FALSE)

Arguments

mat

a matrix

min

minimum value required for a row to be assigned to a column

diff

minimum difference in value to the 'next-best' row that is required for a row to be assigned to a column.

splitByCol

a boolean value indicating whether the resulting vector should be split by column variable. Default = FALSE

Value

a vector of the rownames whose values were highest in that column, or if splitByCol is TRUE, a list.


jlaffy/scrabble documentation built on Nov. 16, 2019, 7:56 a.m.