p50 | R Documentation |
Compute the sample 50th percentile (median).
p50(x, na.rm = FALSE)
x |
a numeric vector containing the values whose 50th percentile is to be computed. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
numeric
p50(1:100) p50(c(1:10, NA, 11:100), na.rm=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.