Description Usage Arguments Value
View source: R/maxcol_strict.R
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.
1 |
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 |
a vector of the rownames whose values were highest in that column, or if splitByCol is TRUE, a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.