R/extremogram.R
rmax.Rd
rmax() computes the maxima row-wise
rmax()
rmax(mat)
Matrix
A numerical vector with the same number of columns as mat
mat
x <- rbind( c(1,2), c(1,1) ) rmax(x) #> [1] 2 1