View source: R/summary-functions.R
cont_long_fun | R Documentation |
Function for continuous long summaries
cont_long_fun(value, digit_fun = sig, digits = 3, na_fill = "--", ...)
value |
the data to summarize |
digit_fun |
a function to format digits in the summaries |
digits |
the number of digits in the summary; the current implementation
passes |
na_fill |
value to fill with when all values in the summary are missing |
... |
not used |
The function returns a tibble with one row and five columns:
n
the number of non-missing observations in value
Mean
the mean of value
Median
the median of value
SD
the standard deviation of value
Min / Max
the range of value
All columns are returned as character
.
pmtables:::cont_long_fun(rnorm(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.