View source: R/descriptionStats.R
describeMedian | R Documentation |
A function that returns a description median that contains the interquartile range or the full range
describeMedian(
x,
iqr = TRUE,
html = TRUE,
digits = 1,
digits.nonzero = NA,
number_first = TRUE,
useNA = c("ifany", "no", "always"),
useNA.digits = digits,
percentage_sign = TRUE,
language = "en",
...
)
x |
The variable that you want the statistics for |
iqr |
If interquartile range should be used |
html |
If HTML compatible output should be used. If |
digits |
The number of decimals used |
digits.nonzero |
The number of decimals used for values that are close to zero |
number_first |
If the number should be given or if the percentage should be presented first. The second is encapsulated in parentheses (). This is only used together with the useNA variable. |
useNA |
This indicates if missing should be added as a separate
row below all other. See |
useNA.digits |
The number of digits to use for the
missing percentage, defaults to the overall |
percentage_sign |
If you want to suppress the percentage sign you can set this variable to FALSE. You can also choose something else that the default % if you so wish by setting this variable. Note, this is only used when combined with the missing information. |
language |
The ISO-639-1 two-letter code for the language of
interest. Currently only english is distinguished from the ISO
format using a ',' as the separator in the |
... |
Passed on to |
string
A string formatted for either LaTeX or HTML
getDescriptionStatsBy
Other descriptive functions:
describeFactors()
,
describeMean()
,
describeProp()
,
getDescriptionStatsBy()
,
getPvalWilcox()
describeMedian(1:10)
describeMedian(c(1:10, NA), useNA = "ifany")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.