Min/Max With All NA's Allowed Min and Max functions that allows the vector x to be NA, where f is min or max
x
NA
f
min
max
Useful links