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