max(..., na.rm = F) min(..., na.rm = F)
These are members of the Summary group of generic functions.
# create some sample objects x <- c(1, 2, 3) y <- c(4, 5, NA) min(na.rm = T, x, y) # returns 1 since na.rm = T min(x, y) # returns NA
min(na.rm = T, x, y) # returns 1 since na.rm = T min(x, y) # returns NA