View source: R/maxmin_rowcol.R
colMax | R Documentation |
Given a matrix, it returns a dataframe with two column: - first column are max values for each column of the original matrix - second column are indices of max values
colMax(mat)
mat |
Matrix object |
A dataframe with values and indices of max for each column
mat <- matrix(1:9, nrow = 3)
mat
colMax(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.