max_na_rm | R Documentation |
A re-coding of the max function which returns NA if all values are NA. Normally max(na.rm=TRUE) will return -Inf if all values are NA.
max_na_rm(x)
x |
numeric vector |
numeric vector of length 1
max_na_rm(c(1:2, NA)) max_na_rm(c(NA, NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.