Description Usage Arguments Value
When computing the mean of a vector and removing missing values with na.rm = TRUE, this results in NaN if all values were NA. This function handles such occassions by returning NA instead.
1 |
x |
An R object. Currently there are methods for
numeric/logical vectors and date,
date-time and time interval objects. Complex vectors
are allowed for |
na.rm |
a logical value indicating whether |
... |
further arguments passed to or from other methods. |
Mean of non-missing values or, if all values were missing, NA.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.