Learn R Programming

rtemis (version 0.79)

colMax: Collapse data.frame to vector by getting column max

Description

Collapse data.frame to vector by getting column max

Usage

colMax(x, na.rm = TRUE)

Arguments

x

Matrix or Data frame input

na.rm

Logical: passed to max, If TRUE, ignore NA values, otherwise if NA is present in any column, NA will be returned. Default = TRUE