betterMin: Better Min

Description Usage Arguments Value Examples

View source: R/betterMin.R

Description

Find the minimum value of a object that may contain NA's.

Usage

1

Arguments

x

An object such as a numeric vector, matrix, or data.frame

Value

The largest value in x, if any. Otherwise, NA.

Examples

1
2
3
4
5
betterMin(1:5)
betterMin(c(2,3,NA,7))
betterMin(c(NA, NA, NA))
ex1 = data.frame(X1 = LETTERS, X2 = 1:26, X3 = sample(c(20,NA), 26, T))
betterMin(ex1)

debarros/dbTools documentation built on Sept. 18, 2020, 10:51 a.m.