min with NA handling

min_na(...)

Arguments

...

numeric or character vector

Value

minimum or NA if all values are NA

Examples

min_na(2, 3, NA)
#> [1] 2
min_na(NA, NA)
#> [1] NA