high.pass.mean | R Documentation |
Returns mean of a vector where values lower than a given threshold are filtered
high.pass.mean(v, threshold = 0, na.rm = T)
v |
numeric or integer: Given vector for which the filtered mean is computed |
threshold |
numeric (scalar): value specifying the filtering threshold (default is |
na.rm |
logical: Should missing values be filtered? (default is TRUE) |
numeric (scalar): Filtered mean computed
high.pass.mean(c(1, NA, 3, 2, -1, -2), threshold = 1) [1] 2.5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.