View source: R/variable_summaries.R
perc01 | R Documentation |
These are wrappers for the more common quantile
function
which computes the most commonly used percentiles. Functions beginning with
perc
compute the corresponding percentile; functions beginning with
Q
compute the corresponding quartile, and IQR
computes the
interquartile range.
perc01(x, na.rm = FALSE, type = 7)
perc05(x, na.rm = FALSE, type = 7)
perc10(x, na.rm = FALSE, type = 7)
perc20(x, na.rm = FALSE, type = 7)
perc80(x, na.rm = FALSE, type = 7)
perc85(x, na.rm = FALSE, type = 7)
perc90(x, na.rm = FALSE, type = 7)
perc95(x, na.rm = FALSE, type = 7)
perc99(x, na.rm = FALSE, type = 7)
Q1(x, na.rm = FALSE, type = 7)
Q3(x, na.rm = FALSE, type = 7)
x |
numeric vector whose sample quantiles are wanted. |
na.rm |
logical; if |
type |
an integer between 1 and 9 selecting one of the nine quantile
algorithms detailed in |
perc05()
:
perc10()
:
perc20()
:
perc80()
:
perc85()
:
perc90()
:
perc95()
:
perc99()
:
Q1()
:
Q3()
:
summarize_variable(mpg ~ 1, data = mtcars, perc01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.