Skip to contents

Computes the maximum value of each row in a matrix or data frame, ignoring NAs. Returns NA if an entire row is missing.

Usage

AS.rowmax(input)

Arguments

input

A numeric matrix or data frame.

Value

A numeric vector of row-wise maxima.

Details

An example use case in survival analysis is determining the date of last follow-up from several dates when the patient was observed.