View source: R/datasummary_functions.R
| Median | R Documentation | 
datasummary statistic shortcut
Median(x, fmt = NULL, na.rm = TRUE, ...)
| x | variable to summarize | 
| fmt | passed to the  | 
| na.rm | a logical value indicating whether ‘NA’ values should be stripped before the computation proceeds. | 
| ... | unused | 
if (identical(Sys.getenv("pkgdown"),  "true")) {
datasummary(mpg + hp ~ Mean + Median + P0 + P25 + P50 + P75 + P100 +
            Min + Max + SD + Var,
            data = mtcars)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.