#' @importFrom stats median
#'
#' @param x Distribution to calculate median from.
#' @details
#' Median is calculated as the 0.5-quantile. So, when the median is
#' non-unique, we take the smallest of the possibilities.
#' @rdname moments
#' @export
median.dst <- function(x, ...) {
eval_quantile(x, at = 0.5)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.