which_median <- function(x) { n <- length(x) if (n %% 2 == 0) order(x)[n/2] else order(x)[n/2+1] }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.