Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

matrixMinMax

Maximums and minimums for numeric matrices


Description

Calculate the maximums or minimums column-wise or row-wise, depending on the called method.

Usage

colMax(matrix) # column maximums
  colMin(matrix) # column minimums
  rowMax(matrix) # row maximums
  rowMin(matrix) # row minimums

Arguments

matrix

a matrix class object

Value

A vector by the column or row maximums or minimums of the given matrix.

See Also

Examples

set.seed(123)
  M <- matrix(rpois(12,3),3,4)
  M
  # 2 5 3 3
  # 4 6 5 6
  # 2 0 3 3

  colMax(M)  # c(4,6,5,6)
  colMin(M)  # c(2,0,3,3)
  rowMax(M)  # c(5,6,3)
  rowMin(M)  # c(2,4,0)
  # clean up
  # rm(M)

polyMatrix

Infrastructure for Manipulation Polynomial Matrices

v0.3.1
MIT + file LICENSE
Authors
Tamas Prohle [aut], Peter Prohle [aut], Nikolai Ryzhkov [aut, cre], Ildiko Laszlo [aut] (<https://orcid.org/0000-0003-2324-8183>), Ulas Onat Alakent [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.