Description Usage Arguments Details Value See Also Examples
A summaryFunction
, intended to be called from summarize
,
which calculates the 1st and 3rd quartiles of a variable. NA, NaN and Inf values are removed
prior to the computations.
1 | quartiles(v, maxDecimals = 2)
|
v |
A variable (vector) of type numeric or integer. |
maxDecimals |
A positive integer or |
The quartiles are computed using the quantile
function from stats
,
using type 7 quantiles for integer and numeric variables and type 1 quantiles for Date variables.
An object of class summaryResult
with the following entries: $feature
("1st and 3rd quartiles"), $result
(the 1st and 3rd quartiles of v
) and
$value
(the quartiles in their original format).
summaryFunction
, summarize
, summaryResult
,
allSummaryFunctions
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.