R/min_max.R
min.Rd
Finds the minimum value for each column of a matrix, potentially returning the indices instead
min(X, indices = TRUE)
matrix
return indices?
Either a list or a vector
Waldir Leoncio
A <- matrix(c(23, 42, 37, 15, 52)) min(A) #> $mins #> [1] 15 #> #> $idx #> [1] 4 #> base::min(A) # for comparison #> [1] 15