Description Usage Arguments Value
The max function returns -Inf and a warning if there are no non-NA values in their arguments. This function suppress the warning and returns NA.
1 | max_or_na(x)
|
x |
a numeric vector |
the result of max or NA if there are no non-NA values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.