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/meltimr documentation built on April 29, 2021, 9:56 a.m.