min function discarding NA values

Description

Compute the minimum of a vector, discarding NA values.

Usage

1
minNA(x)

Arguments

x

vector

Value

Return the minimum of x

Author(s)

Romain Frelat, Bruno Gerard

See Also

minNA2,meanNA,maxNA,sdNA,maxNA2

Examples

1
2
a=c(15,35,NA)
minNA(a)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.