Skip to contents

rmax() computes the maxima row-wise

Usage

rmax(mat)

Arguments

mat

Matrix

Value

A numerical vector with the same number of columns as mat

Examples

x <- rbind( c(1,2), c(1,1) )
rmax(x)
#> [1] 2 1