rowMax: Gives the maximum value of each row

View source: R/utils-DF.R

rowMaxR Documentation

Gives the maximum value of each row

Description

Gives the maximum value of each row

Usage

rowMax(DF, type = "val")

Arguments

DF

data.frame or matrix

type

string to indicate how the result should be formatted "val" (default) returns the maximum values, "ind" returns the indices (as a named vector) of the maximum values, "all" returns a data.frame with the maximum value for each row and the indices.

Value

the maximum values and (or) their indices


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.