pmean | R Documentation |
pmean
is to mean
what
pmax
is to max
.
pmean(..., na.rm = TRUE)
... |
vectors |
na.rm |
a logical indicating whether missing values should be removed |
Return the average of the numbers in the same position across all inputs.
pmean(1:10, 5, 11:20)
pmean(1:10, 5, c(11:19, NA))
pmean(1:10, 5, c(11:19, NA), na.rm = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.