fun_no_na | R Documentation |
Perform an operation on a vector that may be empty or all NA with controlled output.
fun_no_na(x, FUN, zero_len = NULL)
max_no_na(x, zero_len = NA)
min_no_na(x, zero_len = NA)
median_no_na(x, zero_len = NA)
mean_no_na(x, zero_len = NA)
sd_no_na(x, zero_len = NA)
x |
The object to perform the operation on. |
FUN |
The function to perform if the object is neither zero length or all |
zero_len |
If |
An object of the same class as x
max_no_na()
: Maximum
min_no_na()
: Minimum
median_no_na()
: Median
mean_no_na()
: Median
sd_no_na()
: Median
min_no_na(c(NA, 3))
min_no_na(double(), zero_len=NULL)
max_no_na(c(NA, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.