tableQuantiles | R Documentation |
returns a data.frame with the specified quantile limits of data
tableQuantiles(
data,
column,
removeNA = TRUE,
limits = c(1, 0.995, 0.975, 0.9, 0.75, 0.5, 0.25, 0.1, 0.025, 0.5, 0),
label = NA,
quantilePercentage = TRUE
)
data |
the data to be used, can be a numeric/character/etc vector or data.frame like (or tibble etc). If it is data.frame or similar the column argument defines which column is to be used |
column |
defines which column is to be used for calculating the quantiles. Can be integer or character (column name) |
removeNA |
if TRUE, the NA 'values' in the vector will be removed prior to calculating the quantiles. @note this will remove warning messages and errors |
limits |
a numeric vector specifying the quantile limits to be calculated. @note these values should be between 0 and 1 |
label |
defines the name of the calculated limits column. Under 'normal' circumstances this would be the column name of the data |
quantilePercentage |
boolean defining whether the percentile column output should percentages of the values specified in limits parameter |
a data.frame with two columns: quanitle and the limits calculated from the data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.