max_na: Maximum with NA values.

Description Usage Arguments Value Examples

View source: R/functs_na.R

Description

Function to determine maximum value automatically handling NAs. Calculates maximum value disregarding NAs, except when all values are NA.

Usage

1
max_na(x)

Arguments

x

numeric or character arguments; see also R documentation for min.

Value

The minimum value in x.

Examples

1
2
max_na(c(2 ,3, NA))
max_na(c(NA, NA, NA))

ERottler/alptempr documentation built on May 7, 2021, 1:12 a.m.